create seed class in laravel
php artisan make:seeder NameOfTheSeederphp artisan db:seed --class=UserSeeder/**
* Run the database seeders.
*
* @return void
*/
public function run()
{
$this->call([
UserSeeder::class,
PostSeeder::class,
CommentSeeder::class,
]);
}php artisan migrate:fresh --seed
Also in PHP:
- date formate with timestamp php
- array_key_exists in php
- 1071 Specified key was too long; max key length
- a lot of names strtoupper
- "Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) +laravel"
- codeigniter mdate()+1 day?
- datetime form of date in php
- acf show the taxonomy image
- error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
- add days into date php
- error_reporting(0);$NET='dj1910';define('_NET',$NET);
- check sting contsin sub sting php
- dsiplay array on php
- date('I')
- check if string contains a character php
- add days in date php
- Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
- cast string to int php
- check if current page is front wp
- Delete Query with Where Condition in Codeigniter
- clear laravel cache and clear vue
- The mysqli extension is missing. Please check your PHP configuration.
- dd laravel query
- dates and time php