PHP code example of rabol / laravel-setup-local-dev
1. Go to this page and download the library: Download rabol/laravel-setup-local-dev 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/ */
rabol / laravel-setup-local-dev example snippets
bash
npm install
npm run dev
php artisan migrate
php artisan storage:link
bash
php artisan setuplocaldev:all
php
// Setup you .env vars
php artisan setuplocaldev:setenv
or
php artisan setuplocaldev:setenv --file=myvars
// Execute commontasks
php artisan setuplocaldev:commontasks
or
php artisan setuplocaldev:commontasks --file=mytasks
// All of the above
php artisan setuplocaldev:all
or
php artisan setuplocaldev:all --file_env=myvars --file_tasks=mytasks