Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

spatie/laravel-beyond-crud.com

58 stars
2 code files
View spatie/laravel-beyond-crud.com on GitHub

app/Providers/FlashServiceProvider.php

Open in GitHub
use Illuminate\Support\ServiceProvider;
use Spatie\Flash\Flash;
 
class FlashServiceProvider extends ServiceProvider
{
public function register()
{
Flash::levels([
'success' => 'alert-success',
'error' => 'alert-error',
]);
}
}

config/app.php

Open in GitHub
return [
//
'providers' => [
//
App\Providers\FlashServiceProvider::class,
//
],
//
];

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.