Skip to content

Commit

Permalink
🎨 Update the Filament Starter skeleton (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x authored Jul 20, 2024
2 parents 62c3f5e + e62ef4e commit 02779c3
Show file tree
Hide file tree
Showing 35 changed files with 337 additions and 314 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_US

APP_MAINTENANCE_DRIVER=file
APP_MAINTENANCE_STORE=database
# APP_MAINTENANCE_STORE=database

BCRYPT_ROUNDS=12

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
.env
.env.backup
.env.production
.phpactor.json
.phpunit.result.cache
Homestead.json
Homestead.yaml
Expand Down
2 changes: 1 addition & 1 deletion app/Filament/Auth/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected function getCredentialsFromFormData(array $data): array
}

/**
* Authenticate the user.
* Attempt to authenticate the user.
*/
public function authenticate(): ?LoginResponse
{
Expand Down
8 changes: 2 additions & 6 deletions app/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

namespace App\Http\Controllers;

use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;

class Controller extends BaseController
abstract class Controller
{
use AuthorizesRequests, ValidatesRequests;
//
}
7 changes: 6 additions & 1 deletion app/Providers/AdminPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,23 @@ public function panel(Panel $panel): Panel
hasAvatars: false
)
->enableTwoFactorAuthentication(),

CuratorPlugin::make()
->label('Media')
->pluralLabel('Media Library')
->navigationIcon('heroicon-o-photo')
->navigationGroup('Media')
->navigationCountBadge(),
FilamentExceptionsPlugin::make(),

FilamentJobsMonitorPlugin::make()
->navigationCountBadge()
->navigationGroup('Settings'),

FilamentPeekPlugin::make()
->disablePluginStyles(),

FilamentExceptionsPlugin::make(),

GravatarPlugin::make(),
])
->defaultAvatarProvider(GravatarProvider::class)
Expand Down
4 changes: 3 additions & 1 deletion bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
health: '/up',
)
->withMiddleware(function (Middleware $middleware) {
$middleware->appendToGroup('web', [
$middleware->web([
App\Http\Middleware\AddSeoDefaults::class,
]);

$middleware->redirectTo(fn () => Filament\Pages\Dashboard::getUrl());
})
->withExceptions(function (Exceptions $exceptions) {
$exceptions->reportable(fn (Throwable $e) => $exceptions->handler->shouldReport($e) &&
Expand Down
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"croustibat/filament-jobs-monitor": "^2.4.0",
"diglactic/laravel-breadcrumbs": "^9.0",
"filament/filament": "^3.2.50",
"guzzlehttp/guzzle": "^7.2",
"jeffgreco13/filament-breezy": "^2.2",
"laravel/framework": "^11.0",
"laravel/sanctum": "^4.0",
Expand All @@ -33,8 +32,7 @@
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^8.1",
"spatie/laravel-ignition": "^2.0"
"nunomaduro/collision": "^8.1"
},
"autoload": {
"psr-4": {
Expand Down
5 changes: 3 additions & 2 deletions config/cache.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
| well as their drivers. You may even define multiple stores for the
| same cache driver to group types of items stored in your caches.
|
| Supported drivers: "apc", "array", "database", "file", "memcached",
| Supported drivers: "array", "database", "file", "memcached",
| "redis", "dynamodb", "octane", "null"
|
*/
Expand All @@ -40,9 +40,10 @@

'database' => [
'driver' => 'database',
'table' => env('DB_CACHE_TABLE', 'cache'),
'connection' => env('DB_CACHE_CONNECTION'),
'table' => env('DB_CACHE_TABLE', 'cache'),
'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'),
'lock_table' => env('DB_CACHE_LOCK_TABLE'),
],

'file' => [
Expand Down
3 changes: 3 additions & 0 deletions config/database.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => '',
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
'busy_timeout' => null,
'journal_mode' => null,
'synchronous' => null,
],

'mysql' => [
Expand Down
2 changes: 1 addition & 1 deletion config/filesystems.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
| may even configure multiple disks for the same driver. Examples for
| most supported storage drivers are configured here for reference.
|
| Supported Drivers: "local", "ftp", "sftp", "s3"
| Supported drivers: "local", "ftp", "sftp", "s3"
|
*/

Expand Down
2 changes: 1 addition & 1 deletion config/logging.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
| utilizes the Monolog PHP logging library, which includes a variety
| of powerful log handlers and formatters that you're free to use.
|
| Available Drivers: "single", "daily", "slack", "syslog",
| Available drivers: "single", "daily", "slack", "syslog",
| "errorlog", "monolog", "custom", "stack"
|
*/
Expand Down
17 changes: 15 additions & 2 deletions config/mail.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
| your mailers below. You may also add additional mailers if needed.
|
| Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2",
| "postmark", "log", "array", "failover", "roundrobin"
| "postmark", "resend", "log", "array",
| "failover", "roundrobin"
|
*/

Expand All @@ -45,7 +46,7 @@
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'timeout' => null,
'local_domain' => env('MAIL_EHLO_DOMAIN'),
'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'http://localhost'), PHP_URL_HOST)),
],

'ses' => [
Expand All @@ -60,6 +61,10 @@
// ],
],

'resend' => [
'transport' => 'resend',
],

'sendmail' => [
'transport' => 'sendmail',
'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
Expand All @@ -82,6 +87,14 @@
],
],

'roundrobin' => [
'transport' => 'roundrobin',
'mailers' => [
'ses',
'postmark',
],
],

],

/*
Expand Down
4 changes: 4 additions & 0 deletions config/services.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
],

'resend' => [
'key' => env('RESEND_KEY'),
],

'slack' => [
'notifications' => [
'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),
Expand Down
1 change: 0 additions & 1 deletion config/session.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@
| the framework. Typically, you should not need to change this value
| since doing so does not grant a meaningful security improvement.
|
|
*/

'cookie' => env(
Expand Down
9 changes: 9 additions & 0 deletions public/build/assets/admin-CgZvh9qs.css

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions public/build/assets/admin-DFtyRkux.css

This file was deleted.

125 changes: 125 additions & 0 deletions public/build/assets/app-BHRUNd3W.js

Large diffs are not rendered by default.

125 changes: 0 additions & 125 deletions public/build/assets/app-BP3YR-RJ.js

This file was deleted.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions public/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"resources/css/admin.css": {
"file": "assets/admin-DFtyRkux.css",
"file": "assets/admin-CgZvh9qs.css",
"src": "resources/css/admin.css",
"isEntry": true
},
"resources/css/app.css": {
"file": "assets/app-jRdCGEsC.css",
"file": "assets/app-DDwGWwoQ.css",
"src": "resources/css/app.css",
"isEntry": true
},
"resources/js/app.js": {
"file": "assets/app-BP3YR-RJ.js",
"file": "assets/app-BHRUNd3W.js",
"name": "app",
"src": "resources/js/app.js",
"isEntry": true
Expand Down
Loading

0 comments on commit 02779c3

Please sign in to comment.