What do you want to save?
Add Code snippet
New code examples
-
-
PHP 2021-10-02 15:25:06
php artisan db:seed Call to undefined method App\Models\Product::factory()
//When running: php artisan db:seed //Occurs de error: Call to undefined method App\Models\[YOUR_MODEL_NAME]::factory() //Fix - Add the following line to your model "use HasFactory;" class [YOUR_MODEL_NAME] extends Model { use HasFactory; ... Add solution -
Other 2021-09-08 18:11:01
laravel create default admin user
Add to the .env file: ADMIN_NAME="John Doe" [email protected] ADMIN_PASSWORD=secure_pa55word Add to the .env.example file: ADMIN_NAME= ADMIN_EMAIL= ADMIN_PASSWORD= Create 'admin.php' inside the \config\ folder and paste... Add solution
Best helpers
Ranking is empty