Update project dependencies and configuration
- Added Filament and Tailwind CSS dependencies in composer.json. - Updated AGENTS.md to include new package versions. - Modified boost.json to include tailwindcss-development skill. - Updated DatabaseSeeder to create an admin user with a password. - Changed the root route to use HomeController instead of a closure. - Adjusted permissions for .gitignore in storage directory.
This commit is contained in:
1 parent
608876864b
commit
b13d61b342
128 files changed
+7221
-223
No files matched your search
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
class CarouselSlide extends Model
|
||||
{
|
||||
protected $fillable = ['image', 'title', 'subtitle', 'order', 'is_active'];
|
||||
|
||||
protected static function booted(): void
|
||||
{
|
||||
static::deleting(function (CarouselSlide $slide) {
|
||||
if ($slide->image) {
|
||||
Storage::disk('public')->delete($slide->image);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user