Skip to content

Commit

Permalink
change namespace for Translatable
Browse files Browse the repository at this point in the history
change namespace for Translatable  and composer update
  • Loading branch information
atmonshi committed Jun 11, 2022
1 parent 42075ba commit 1afefba
Show file tree
Hide file tree
Showing 11 changed files with 488 additions and 421 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Lara-zeus sky is simple CMS for your website. it include posts, pages, tags, and
- 🔥 built with [TALL stack](https://tallstack.dev/)
- 🔥 using [filament](https://filamentadmin.com) as an admin panel
- 🔥 FrontEnd scaffolding, highly customizable.
- 🔥 all models are translatable.
- sticky posts
- recent posts
- pages list
Expand Down
881 changes: 478 additions & 403 deletions composer.lock

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/Filament/Resources/FaqResource/Pages/CreateFaq.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
namespace LaraZeus\Sky\Filament\Resources\FaqResource\Pages;

use Filament\Resources\Pages\CreateRecord;
use Filament\Resources\Pages\CreateRecord\Concerns\Translatable;
use LaraZeus\Sky\Filament\Resources\FaqResource;

class CreateFaq extends CreateRecord
{
use Translatable;
use CreateRecord\Concerns\Translatable;

protected static string $resource = FaqResource::class;
}
3 changes: 1 addition & 2 deletions src/Filament/Resources/FaqResource/Pages/EditFaq.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

namespace LaraZeus\Sky\Filament\Resources\FaqResource\Pages;

use Filament\Resources\Pages\CreateRecord\Concerns\Translatable;
use Filament\Resources\Pages\EditRecord;
use LaraZeus\Sky\Filament\Resources\FaqResource;

class EditFaq extends EditRecord
{
use Translatable;
use EditRecord\Concerns\Translatable;

protected static string $resource = FaqResource::class;
}
3 changes: 1 addition & 2 deletions src/Filament/Resources/FaqResource/Pages/ListFaqs.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

namespace LaraZeus\Sky\Filament\Resources\FaqResource\Pages;

use Filament\Resources\Pages\CreateRecord\Concerns\Translatable;
use Filament\Resources\Pages\ListRecords;
use LaraZeus\Sky\Filament\Resources\FaqResource;

class ListFaqs extends ListRecords
{
use Translatable;
use ListRecords\Concerns\Translatable;

protected static string $resource = FaqResource::class;
}
3 changes: 1 addition & 2 deletions src/Filament/Resources/PageResource/Pages/CreatePost.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
namespace LaraZeus\Sky\Filament\Resources\PageResource\Pages;

use Filament\Resources\Pages\CreateRecord;
use Filament\Resources\Pages\CreateRecord\Concerns\Translatable;
use LaraZeus\Sky\Filament\Resources\PageResource;

class CreatePost extends CreateRecord
{
use Translatable;
use CreateRecord\Concerns\Translatable;

protected static string $resource = PageResource::class;
}
3 changes: 1 addition & 2 deletions src/Filament/Resources/PageResource/Pages/EditPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
namespace LaraZeus\Sky\Filament\Resources\PageResource\Pages;

use Filament\Resources\Pages\EditRecord;
use Filament\Resources\Pages\EditRecord\Concerns\Translatable;
use LaraZeus\Sky\Filament\Resources\PageResource;

class EditPost extends EditRecord
{
use Translatable;
use EditRecord\Concerns\Translatable;

protected static string $resource = PageResource::class;
}
3 changes: 1 addition & 2 deletions src/Filament/Resources/PageResource/Pages/ListPosts.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
namespace LaraZeus\Sky\Filament\Resources\PageResource\Pages;

use Filament\Resources\Pages\ListRecords;
use Filament\Resources\Pages\ListRecords\Concerns\Translatable;
use Illuminate\Database\Eloquent\Builder;
use LaraZeus\Sky\Filament\Resources\PageResource;
use LaraZeus\Sky\Models\Post;

class ListPosts extends ListRecords
{
use Translatable;
use ListRecords\Concerns\Translatable;

protected static string $resource = PageResource::class;

Expand Down
3 changes: 1 addition & 2 deletions src/Filament/Resources/PostResource/Pages/CreatePost.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
namespace LaraZeus\Sky\Filament\Resources\PostResource\Pages;

use Filament\Resources\Pages\CreateRecord;
use Filament\Resources\Pages\CreateRecord\Concerns\Translatable;
use LaraZeus\Sky\Filament\Resources\PostResource;

class CreatePost extends CreateRecord
{
use Translatable;
use CreateRecord\Concerns\Translatable;

protected static string $resource = PostResource::class;
}
3 changes: 1 addition & 2 deletions src/Filament/Resources/PostResource/Pages/EditPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
namespace LaraZeus\Sky\Filament\Resources\PostResource\Pages;

use Filament\Resources\Pages\EditRecord;
use Filament\Resources\Pages\EditRecord\Concerns\Translatable;
use LaraZeus\Sky\Filament\Resources\PostResource;

class EditPost extends EditRecord
{
use Translatable;
use EditRecord\Concerns\Translatable;

protected static string $resource = PostResource::class;
}
3 changes: 1 addition & 2 deletions src/Filament/Resources/PostResource/Pages/ListPosts.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
namespace LaraZeus\Sky\Filament\Resources\PostResource\Pages;

use Filament\Resources\Pages\ListRecords;
use Filament\Resources\Pages\ListRecords\Concerns\Translatable;
use Illuminate\Database\Eloquent\Builder;
use LaraZeus\Sky\Filament\Resources\PostResource;
use LaraZeus\Sky\Models\Post;

class ListPosts extends ListRecords
{
use Translatable;
use ListRecords\Concerns\Translatable;

protected static string $resource = PostResource::class;

Expand Down

0 comments on commit 1afefba

Please sign in to comment.