2017 © Pedro Peláez
 

library mari

CMS package

image

featherwebs/mari

CMS package

  • Tuesday, May 8, 2018
  • by ShresthaSrawan
  • Repository
  • 1 Watchers
  • 1 Stars
  • 362 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 13 Versions
  • 2 % Grown

The README.md

About Mari

Mari is a Laravel CMS package that aims to streamline Web Development process., (*1)

Dependencies

1) Entrust 2) Laravel Datatables 3) Intervention 4) Revisionable 5) Datatables 6) Revisionable 7) Laraberg 8) Laravel File Manager, (*2)

Installation

1) In order to install Mari, just add the following to your composer.json. Then run composer update:, (*3)

"featherwebs/mari": "dev-master"

2) Open your config/app.php and add the following to the providers array:, (*4)

Featherwebs\Mari\FeatherwebsServiceProvider::class,

3) Run the command below to publish the package templates:, (*5)

php artisan vendor:publish --force

and select Featherwebs\Mari\FeatherwebsServiceProvider, (*6)

4) Open your app/User.php change it to:, (*7)

use Featherwebs\Mari\Models\FeatherwebsUser;

class User extends FeatherwebsUser
{
...
}

5) Run migrations, (*8)

php artisan migrate --path="vendor/featherwebs/mari/src/database/migrations"

6) Run seeds, (*9)

php artisan db:seed --class="Featherwebs\Mari\Seeder\MariSeeder"

7) You also need to add the following:, (*10)

    '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., (*11)

8) You also need to add the following:, (*12)

    '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:, (*13)


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., (*14)

Contributing

Thank you for considering contributing to the Featherwebs Mari framework!, (*15)

Security Vulnerabilities

If you discover a security vulnerability, please send an e-mail to Srawan Shrestha at srawan@featherwebs.com. All security vulnerabilities will be promptly addressed., (*16)

License

The Featherwebs Mari is open-sourced software licensed under the MIT license., (*17)

The Versions