- Convert class references from strings to static ::class constants built-in to PHP for improved code completion and static analysis.

- Replace Facade references using the global namespace with their FQCN for improved code completion and static analysis.
- delete database\factories\PageFactory.php and app\services\Registrar.php
This commit is contained in:
Arno Kaimbacher 2022-08-05 13:26:42 +02:00
parent c4d74ca631
commit 1b2e77d907
12 changed files with 32 additions and 88 deletions

View file

@ -1,22 +0,0 @@
<?php
use App\Models\Access\User\User;
use App\Models\Page;
use Faker\Generator as Faker;
$factory->define(Page::class, function (Faker $faker) {
$title = $faker->sentence;
// $newestPage = Page::orderBy('id', 'desc')->first();
return [
'title' => $title,
'page_slug' => str_slug($title),
'description' => $faker->paragraph,
'cannonical_link' => 'http://localhost/'.str_slug($title),
'created_by' => 1,
'status' => 1,
'created_at' => Carbon\Carbon::now(),
'updated_at' => Carbon\Carbon::now(),
];
});