Jul 10, 2024
php artisan make:migration [table_name]
use SoftDeletes
in the modeltable->softDeletes()
in the migrationrequest->validate()
methodphp artisan make:controller [ControllerName]
php artisan make:provider [ProviderName]
register()
, boot()
php artisan make:middleware [MiddlewareName]
kernel.php
VerifyCsrfToken
extends BaseVerifier
protected $except
class Post { use Sharable; }
count
, max
, min
, avg
, sum
.env
file or config.php
401
: Unauthorized402
: Payment required403
: Forbidden404
: Not found500
: Internal server error501
: Not implemented503
: Service unavailablephp artisan config:clear
php artisan cache:clear
composer dump-autoload
php artisan route:clear
.env
filephp artisan key:generate
lifetime
variable in config/session.php
php artisan migrate:rollback --step=1
request()->route()->getName()