PHP code example of featherwebs / mari
1. Go to this page and download the library: Download featherwebs/mari 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/ */
featherwebs / mari example snippets
Featherwebs\Mari\FeatherwebsServiceProvider::class,
use Featherwebs\Mari\Models\FeatherwebsUser;
class User extends FeatherwebsUser
{
...
}
php artisan migrate --path="vendor/featherwebs/mari/src/database/migrations"
php artisan db:seed --class="Featherwebs\Mari\Seeder\MariSeeder"
'role' => \Zizaco\Entrust\Middleware\EntrustRole::class,
'permission' => \Zizaco\Entrust\Middleware\EntrustPermission::class,
'ability' => \Zizaco\Entrust\Middleware\EntrustAbility::class,
'uploads' => [
'driver' => 'local',
'root' => storage_path('app/public/files/uploads'),
'url' => env('APP_URL').'/storage/files/uploads',
'visibility' => 'public',
],
ImageWasUploaded::class => [
\Featherwebs\Mari\Listeners\ImageUploaded::class,
],
ImageIsRenaming::class => [
\Featherwebs\Mari\Listeners\ImageRenamed::class
],
ImageWasDeleted::class => [
\Featherwebs\Mari\Listeners\ImageDeleted::class
],
shell
php artisan vendor:publish --force