1You can create project by 2 ways:
2
3First is installing it without defining version:
4composer create-project laravel/laravel yourProjectName
5
6Secondly you can install by defining version:
7composer create-project laravel/laravel="VersionOfYourChoice" yourProjectName
1php artisan schema:dump
2
3// Dump the current database schema and prune all existing migrations...
4php artisan schema:dump --prune
1<?php
2
3namespace Database\Factories;
4
5use App\Models\User;
6use Illuminate\Database\Eloquent\Factories\Factory;
7use Illuminate\Support\Str;
8
9class UserFactory extends Factory
10{
11 /**
12 * The name of the factory's corresponding model.
13 *
14 * @var string
15 */
16 protected $model = User::class;
17
18 /**
19 * Define the model's default state.
20 *
21 * @return array
22 */
23 public function definition()
24 {
25 return [
26 'name' => $this->faker->name,
27 'email' => $this->faker->unique()->safeEmail,
28 'email_verified_at' => now(),
29 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
30 'remember_token' => Str::random(10),
31 ];
32 }
33}