Many developer find it hard to use the following packages all together. For me it took so long fix all after watching and reading so many broken and incomplete tutorials. This boilerplate use uuid as primary key for all models instead auto-increment id. It has integeration with spatie-permissions and example can be seen in seeders.Filemanagement is an important task and unisharip/filemanager is a free a reknowned filemanage. It has a demo link on the homepage.
- Default models to UUID as primary key auto-creation
- Extended Models from Spatie with UUID examples
- Migrations with UUID as primary key
- Seeders for Spatie, Permissions, Roles, Users
- using server type of set up root folder public_html instead of public with "php artisan storage:link" configuration
- Working demo of Unisharp file manager with pdf and other type documents
-
clone or download the reporsitory and go into it.
-
Run commands "composer dump-autoload" and "composer install"
-
Go to your .env file and configure databse settings and APP_URL
-
Run these commands "composer require laravel/ui" and "php artisan ui vue --auth"
-
Run commands "npm install" and "npm run dev".
-
Run commands "php artisan:migrate" and "php artisan db:seed". You can create super admin in the seeders.
-
Run command "php artisan storage:link". We are linking public_html instead of public folder. if you want to use default public folder as root folder then go to Config/filesystem.php and replace 'links' => [ base_path('/public_html/storage') => storage_path('app/public'), ], with 'links' => [ public_path('/storage') => storage_path('app/public'), ],
-
Login to see demo. Go to /demo to see it from views folder rather than vendors or check laravel-filemanager/demo default demo from package.
-
After Storage linking my application is working fine. You may change lmf.php Optional - If you are using it on a server and root directory is public_html instead of public. Then go to Config/lfm.php Change 'base_directory' => 'public_html'. Check configuration option on Unisharp/filemanager/config.
Further you can get help from these documentation links.
If you discover a security vulnerability within this integeration, please send an e-mail to Ali Anwar via [email protected].
The Laravel framework is open-sourced software licensed under the MIT license.