udemey is a udemy clone
composer update
composer install
DB_DATABASE=udemey
QUEUE_CONNECTION=database
SMTP config
- enable 2F Auth
- setup app password at
https://myaccount.google.com/apppasswords
MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USERNAME=<gmail>
MAIL_PASSWORD=<app password>
MAIL_ENCRYPTION=ssl
MAIL_FROM_ADDRESS=<gmail>
MAIL_FROM_NAME="${APP_NAME}"
In App\config\app.php project timezone is set to
'timezone' => 'Asia/Karachi',
composer require php-open-source-saver/jwt-auth
php artisan vendor:publish --provider="PHPOpenSourceSaver\JWTAuth\Providers\LaravelServiceProvider"
php artisan jwt:secret
php artisan key:generate
Inside the config/auth.php file you will need to make a few changes to configure Laravel to use the jwt guard to power your application authentication. Make the following changes to the file: In App/config/auth.php
'defaults' => [
'guard' => 'api',
'passwords' => 'users',
],
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'jwt',
'provider' => 'users',
],
],
This package allows you to manage user permissions and roles in a database.
Refer to official documentation for setup.
Spatie for Laravel
php artisan migrate --seed
php artisan serve
php artisan queue:work
php artisan schedule:work