Mari is a Laravel CMS package that aims to streamline Web Development process.
- Entrust
- Laravel Datatables
- Intervention
- Revisionable
- Datatables
- Revisionable
- Laraberg
- Laravel File Manager
- In order to install Mari, just add the following to your composer.json. Then run
composer update
:
"featherwebs/mari": "dev-master"
- Open your
config/app.php
and add the following to theproviders
array:
Featherwebs\Mari\FeatherwebsServiceProvider::class,
- Run the command below to publish the package templates:
php artisan vendor:publish --force
and select Featherwebs\Mari\FeatherwebsServiceProvider
- Open your
app/User.php
change it to:
use Featherwebs\Mari\Models\FeatherwebsUser;
class User extends FeatherwebsUser
{
...
}
- Run migrations
php artisan migrate --path="vendor/featherwebs/mari/src/database/migrations"
- Run seeds
php artisan db:seed --class="Featherwebs\Mari\Seeder\MariSeeder"
- You also need to add the following:
'role' => \Zizaco\Entrust\Middleware\EntrustRole::class,
'permission' => \Zizaco\Entrust\Middleware\EntrustPermission::class,
'ability' => \Zizaco\Entrust\Middleware\EntrustAbility::class,
to routeMiddleware
array in app/Http/Kernel.php
.
- You also need to add the following:
'uploads' => [
'driver' => 'local',
'root' => storage_path('app/public/files/uploads'),
'url' => env('APP_URL').'/storage/files/uploads',
'visibility' => 'public',
],
to disks
array in config/filesystems.php
.
9) You also need to add the following:
ImageWasUploaded::class => [
\Featherwebs\Mari\Listeners\ImageUploaded::class,
],
ImageIsRenaming::class => [
\Featherwebs\Mari\Listeners\ImageRenamed::class
],
ImageWasDeleted::class => [
\Featherwebs\Mari\Listeners\ImageDeleted::class
],
to listen
array in App/Listeners/EventServiceProvider
.
Thank you for considering contributing to the Featherwebs Mari framework!
If you discover a security vulnerability, please send an e-mail to Srawan Shrestha at [email protected]. All security vulnerabilities will be promptly addressed.
The Featherwebs Mari is open-sourced software licensed under the MIT license.