AKZN Notes

Archives for My Lazy and Forgetful Mind

Laravel Cheat Sheet

Last Modified on

factory call using tinker

PHP Artisan tinker
App\Model\(model name)::factory()->count(5)->create();

databases

 php artisan db:seed --class=TestSeeder  

 php artisan make:migration create_flights_table

 php artisan migrate:rollback --step=1

composer

composer dump-autoload

git

git pull origin main

API sanctum error CSRF token mismatch

add this on .env

SESSION_DOMAIN=localhost
SANCTUM_STATEFUL_DOMAINS=localhost:8081 <--depend on your php conf

Leave a Reply

Your email address will not be published.