Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Dec 16, 2021
1 parent f65f55c commit ee27856
Show file tree
Hide file tree
Showing 64 changed files with 270 additions and 197 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
APP_NAME=Laravel
APP_NAME="Filament Demo"
APP_ENV=local
APP_KEY=
APP_DEBUG=true
Expand Down
19 changes: 19 additions & 0 deletions app/Filament/Pages/Auth/Login.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace App\Filament\Pages\Auth;

use Filament\Http\Livewire\Auth\Login as BasePage;

class Login extends BasePage
{
public function mount(): void
{
parent::mount();

$this->form->fill([
'email' => '[email protected]',
'password' => 'password',
'remember' => true,
]);
}
}
4 changes: 1 addition & 3 deletions app/Filament/Resources/Blog/AuthorResource.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Blog;

use App\Filament\Resources\Blog\AuthorResource\Pages;
Expand All @@ -15,7 +13,7 @@
use Filament\Resources\Table;
use Filament\Tables;

final class AuthorResource extends Resource
class AuthorResource extends Resource
{
protected static ?string $model = Author::class;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Blog\AuthorResource\Pages;

use App\Filament\Resources\Blog\AuthorResource;
use Filament\Resources\Pages\CreateRecord;

final class CreateAuthor extends CreateRecord
class CreateAuthor extends CreateRecord
{
protected static string $resource = AuthorResource::class;
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Blog\AuthorResource\Pages;

use App\Filament\Resources\Blog\AuthorResource;
use Filament\Resources\Pages\EditRecord;

final class EditAuthor extends EditRecord
class EditAuthor extends EditRecord
{
protected static string $resource = AuthorResource::class;
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Blog\AuthorResource\Pages;

use App\Filament\Resources\Blog\AuthorResource;
use Closure;
use Filament\Resources\Pages\ListRecords;

final class ListAuthors extends ListRecords
class ListAuthors extends ListRecords
{
protected static string $resource = AuthorResource::class;

Expand Down
4 changes: 1 addition & 3 deletions app/Filament/Resources/Blog/CategoryResource.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Blog;

use App\Filament\Resources\Blog\CategoryResource\Pages;
Expand All @@ -16,7 +14,7 @@
use Filament\Tables;
use Illuminate\Support\Str;

final class CategoryResource extends Resource
class CategoryResource extends Resource
{
protected static ?string $model = Category::class;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Blog\CategoryResource\Pages;

use App\Filament\Resources\Blog\CategoryResource;
use Filament\Resources\Pages\CreateRecord;

final class CreateCategory extends CreateRecord
class CreateCategory extends CreateRecord
{
protected static string $resource = CategoryResource::class;
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Blog\CategoryResource\Pages;

use App\Filament\Resources\Blog\CategoryResource;
use Filament\Resources\Pages\EditRecord;

final class EditCategory extends EditRecord
class EditCategory extends EditRecord
{
protected static string $resource = CategoryResource::class;
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Blog\CategoryResource\Pages;

use App\Filament\Resources\Blog\CategoryResource;
use Closure;
use Filament\Resources\Pages\ListRecords;

final class ListCategories extends ListRecords
class ListCategories extends ListRecords
{
protected static string $resource = CategoryResource::class;

Expand Down
4 changes: 1 addition & 3 deletions app/Filament/Resources/Blog/PostResource.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Blog;

use App\Filament\Resources\Blog\PostResource\Pages;
Expand All @@ -19,7 +17,7 @@
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Str;

final class PostResource extends Resource
class PostResource extends Resource
{
protected static ?string $model = Post::class;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Blog\PostResource\Pages;

use App\Filament\Resources\Blog\PostResource;
use Filament\Resources\Pages\CreateRecord;

final class CreatePost extends CreateRecord
class CreatePost extends CreateRecord
{
protected static string $resource = PostResource::class;
}
4 changes: 1 addition & 3 deletions app/Filament/Resources/Blog/PostResource/Pages/EditPost.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Blog\PostResource\Pages;

use App\Filament\Resources\Blog\PostResource;
use Filament\Resources\Pages\EditRecord;

final class EditPost extends EditRecord
class EditPost extends EditRecord
{
protected static string $resource = PostResource::class;
}
4 changes: 1 addition & 3 deletions app/Filament/Resources/Blog/PostResource/Pages/ListPosts.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Blog\PostResource\Pages;

use App\Filament\Resources\Blog\PostResource;
use Closure;
use Filament\Resources\Pages\ListRecords;

final class ListPosts extends ListRecords
class ListPosts extends ListRecords
{
protected static string $resource = PostResource::class;

Expand Down
4 changes: 1 addition & 3 deletions app/Filament/Resources/Shop/BrandResource.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Shop;

use App\Filament\Resources\Shop\BrandResource\Pages;
Expand All @@ -15,7 +13,7 @@
use Filament\Resources\Table;
use Filament\Tables;

final class BrandResource extends Resource
class BrandResource extends Resource
{
protected static ?string $model = Brand::class;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Shop\BrandResource\Pages;

use App\Filament\Resources\Shop\BrandResource;
use Filament\Resources\Pages\CreateRecord;

final class CreateBrand extends CreateRecord
class CreateBrand extends CreateRecord
{
protected static string $resource = BrandResource::class;
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Shop\BrandResource\Pages;

use App\Filament\Resources\Shop\BrandResource;
use Filament\Resources\Pages\EditRecord;

final class EditBrand extends EditRecord
class EditBrand extends EditRecord
{
protected static string $resource = BrandResource::class;
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Shop\BrandResource\Pages;

use App\Filament\Resources\Shop\BrandResource;
use Closure;
use Filament\Resources\Pages\ListRecords;

final class ListBrands extends ListRecords
class ListBrands extends ListRecords
{
protected static string $resource = BrandResource::class;

Expand Down
4 changes: 1 addition & 3 deletions app/Filament/Resources/Shop/CategoryResource.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Shop;

use App\Filament\Resources\Shop\CategoryResource\Pages;
Expand All @@ -16,7 +14,7 @@
use Filament\Tables;
use Illuminate\Database\Eloquent\Builder;

final class CategoryResource extends Resource
class CategoryResource extends Resource
{
protected static ?string $model = Category::class;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Shop\CategoryResource\Pages;

use App\Filament\Resources\Shop\CategoryResource;
use Filament\Resources\Pages\CreateRecord;

final class CreateCategory extends CreateRecord
class CreateCategory extends CreateRecord
{
protected static string $resource = CategoryResource::class;
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Shop\CategoryResource\Pages;

use App\Filament\Resources\Shop\CategoryResource;
use Filament\Resources\Pages\EditRecord;

final class EditCategory extends EditRecord
class EditCategory extends EditRecord
{
protected static string $resource = CategoryResource::class;
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Shop\CategoryResource\Pages;

use App\Filament\Resources\Shop\CategoryResource;
use Closure;
use Filament\Resources\Pages\ListRecords;

final class ListCategories extends ListRecords
class ListCategories extends ListRecords
{
protected static string $resource = CategoryResource::class;

Expand Down
4 changes: 1 addition & 3 deletions app/Filament/Resources/Shop/CustomerResource.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Shop;

use App\Filament\Resources\Shop\CustomerResource\Pages;
Expand All @@ -17,7 +15,7 @@
use Filament\Tables;
use Squire\Models\Country;

final class CustomerResource extends Resource
class CustomerResource extends Resource
{
protected static ?string $model = Customer::class;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Shop\CustomerResource\Pages;

use App\Filament\Resources\Shop\CustomerResource;
use Filament\Resources\Pages\CreateRecord;

final class CreateCustomer extends CreateRecord
class CreateCustomer extends CreateRecord
{
protected static string $resource = CustomerResource::class;
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php

declare(strict_types=1);

namespace App\Filament\Resources\Shop\CustomerResource\Pages;

use App\Filament\Resources\Shop\CustomerResource;
use Filament\Resources\Pages\EditRecord;

final class EditCustomer extends EditRecord
class EditCustomer extends EditRecord
{
protected static string $resource = CustomerResource::class;
}
Loading

0 comments on commit ee27856

Please sign in to comment.