PHP code example of rodsaseg / laravel-saseg

1. Go to this page and download the library: Download rodsaseg/laravel-saseg 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/ */

    

rodsaseg / laravel-saseg example snippets

bash
	#default Views and Controllers
    php artisan vendor:publish --tag=laravelsaseg
bash
	#Spatie Permission
    php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
bash
	#Spatie Media Library
    php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="migrations"
bash
	#DataTables
    php artisan vendor:publish --tag=datatables
bash
	#Laravel Installer
    php artisan vendor:publish --tag=laravelinstaller
bash
	#Laravel Migrations Laravel Saseg
    php artisan vendor:publish --provider="Rodsaseg\LaravelSaseg\Providers\LaravelSasegServiceProvider" --tag="migrations"
bash
	php artisan optimize:clear
	# or
	php artisan config:clear
bash
	php artisan migrate
bash
	composer dump-autoload
bash
	php artisan db:seed
bash
	php artisan cache:forget spatie.permission.cache
bash
	php artisan vendor:publish --tag=fm-config
bash
	php artisan vendor:publish --tag=fm-assets --force
bash
    /**
     * Default path for left manager
     *
     * null - root directory
     */
    'leftPath' => 'media',

    /**
     * Default path for right manager
     *
     * null - root directory
     */
    'rightPath' => 'media',