1. Go to this page and download the library: Download fr3on/laravel-inbox library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fr3on / laravel-inbox example snippets
// config/inbox.php
return [
'enabled' => env('INBOX_ENABLED', env('APP_ENV') === 'local'),
'path' => 'inbox', // The URL path for the dashboard
'middleware' => ['web'], // Add your own auth middleware here if needed
'gate' => null, // Optional Laravel Gate name for access control
];
// app/Providers/AuthServiceProvider.php
Gate::define('view-inbox', function ($user) {
return str_ends_with($user->email, '@yourcompany.com');
});