Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to run multiple seeder at a time in laravel

        for ($i = 0; $i < 10; $i++) {
            DB::table('members')->insert([
                'name' => Str::random(10),
                'email' => Str::random(10) . '@gmail.com',
                'address' => Str::random(30),
                'created_at' => date("Y-m-d H:i:s"),
                'updated_at' => Carbon::now(),
            ]);
        }
Comment

PREVIOUS NEXT
Code Example
Php :: php array check 
Php :: php get function name 
Php :: laravel collection concat 
Php :: get numbers from string php 
Php :: what is the difference between static and dynamic websites? 
Php :: check method in laravel 
Php :: if condition in smarty 
Php :: js unserialize 
Php :: php value to javascript variable laravel blade 
Php :: laravel collection map 
Php :: pdo prepare 
Php :: get age in months php 
Php :: laravel web php request to redirect to another page 
Php :: how to convert unix timestamp to date php 
Php :: php check if text is blank 
Php :: or where in codeigniter 
Php :: htmlspecialchars in php 
Php :: http_response_code 
Php :: <?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Main loader script * * @package PhpMyAdmin */ declare(strict_types=1); 
Php :: array of dates laravel 
Php :: simplexml_load_string alternative php 
Php :: brew reinstall php 7.4 
Php :: laravel 9 Route::controller 
Php :: wp get attachment id 
Php :: hide all error in php 
Php :: get post by meta value 
Php :: setup cron on macos for laravel 
Php :: laravel append parameter to links 
Php :: laravel soft delete example 
Php :: foreach loop in laravel 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =