edit static pages in backend
This commit is contained in:
parent
e771c4921f
commit
783ac823ba
59 changed files with 1644 additions and 761 deletions
22
database/factories/PageFactory.php
Normal file
22
database/factories/PageFactory.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?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