- 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:
parent
c4d74ca631
commit
1b2e77d907
12 changed files with 32 additions and 88 deletions
|
@ -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(),
|
||||
];
|
||||
});
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue