blood groups laravel seeder
#All of them
php artisan db:seed
#One class
php artisan db:seed --class=UserSeeder<?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'),
]);
}
}
Also in PHP:
- all cap in php
- check if php string contains
- Add “Affected Products” in catalog price rule
- collection get first element laravel
- codeignitor get insert id
- 10 digit random number generator php
- check if sting contains word php
- creade seeder in laravel
- The Laravel installer requires PHP 7.3.0 or greater. Please use "composer create-project laravel/laravel" instead.
- catch(Exception $e
- convert string to timestamp php
- 2 days in php
- consolelog php response
- Allowed memory size of 536870912 bytes exhausted (tried to allocate 264245248 bytes) http://localhost:8000/createProduct
- +1 month php
- check version composer
- case php try catch
- comannd for rout in laravel
- download php artisan
- convert timestamp to date time in php
- contains in php string
- array kley exists php
- add to hours to variable date php
- capital string php