artisan db:seed all
<?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('users')->insert([
'name' => Str::random(10),
'email' => Str::random(10).'@gmail.com',
'password' => Hash::make('password'),
]);
}
}php artisan make:seeder UsersTableSeeder
Also in PHP:
- ADD OR ON SWITCH CASE PHP
- date format php sql
- file_get_contents timeout
- ccreate array php
- string convet to int php
- end session variable php
- current day + one day php
- artisan migrate one table
- drupal/core 8.9.7 requires ext-dom * -> the requested PHP extension dom is missing from your system. docker
- Error:Cannot create file "C:\xampp\xampp-control.ini". Access denied
- clear remeber cache laravel
- all words capital php
- doctrine fixture bundle
- date ('n')
- check substring in string php
- does php send a new page
- check the length of the string in php
- does contains string character php
- date formats in php date
- convert date to timestamp php
- Install or enable PHP's dom extension.
- find contact page url by domain list php
- __toString() must not throw an exception, caught Error: Call to a member function diffForHumans() on null
- check if a string contain a substring php