Skip to content

Commit

Permalink
Merge pull request #10 from lara-zeus/small-fixes
Browse files Browse the repository at this point in the history
small fixes
  • Loading branch information
atmonshi authored Apr 22, 2022
2 parents 65459c6 + 33b1ca4 commit 8bf7d04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions database/seeders/SkySeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class SkySeeder extends Seeder
{
public function run()
{
Tag::create(['name' => 'laravel', 'type' => 'category']);
Tag::create(['name' => 'talks', 'type' => 'category']);
Tag::create(['name' => 'dev', 'type' => 'category']);
Tag::create(['name' => ['en'=>'laravel', 'ar'=>'لارافل'], 'type' => 'category']);
Tag::create(['name' => ['en'=>'talks', 'ar'=>'اخبار'], 'type' => 'category']);
Tag::create(['name' => ['en'=>'dev', 'ar'=>'تطوير'], 'type' => 'category']);

Post::factory()
->count(8)
Expand Down
2 changes: 1 addition & 1 deletion src/Filament/Resources/PageResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static function form(Form $form): Form
->label(__('Description'))
->hint(__('Write an excerpt for your post')),
TextInput::make('slug')->required()->maxLength(255)->label(__('Post Slug')),
Select::make('parent_id')->options(Post::wherePostType('page')->pluck('title', 'id'))->label(__('Parent Page'))->integer(),
Select::make('parent_id')->options(Post::wherePostType('page')->pluck('title', 'id'))->label(__('Parent Page')),
TextInput::make('ordering')->integer()->label(__('Page Order'))->default(1),
])
->collapsible(),
Expand Down

0 comments on commit 8bf7d04

Please sign in to comment.