git clone https://github.com/g0ld3lux/laravel-starter
composer install
npm install
php artisan key:generate
php artisan jwt:secret
- env.simple = Very Minimal Requirement , sqlite , and Mail Driver set to MailTrap.io for dev
- env.docker = If your Using Docker , and Want to Simulate api.laravel.dev and laravel.dev
cp .env.simple .env
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=
MAIL_PASSWORD=
Note: You Need TO Enable PHP Extension for Sqlite and Also Install Sqlite3
- Go to ./database folder then
touch database.sqlite
sqlite3 database.sqlite
.help
.databases
.quit
.schema ?TABLE?
.tables ?PATTERN?
see more commands here
php artisan migrate --seed
protected $except = [
'api/*'
];
php artisan serve
localhost:8000/api/*