Apply Laravel coding style

Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions.

You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root.

For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
This commit is contained in:
Shift
2024-04-05 18:36:26 +00:00
parent 9655626ee2
commit 7c2a6ffe92
20 changed files with 193 additions and 189 deletions

View File

@@ -33,11 +33,11 @@ class UserFactory extends Factory
public function definition(): array
{
return [
'name' => fake()->name(),
'email' => fake()->unique()->safeEmail(),
'name' => fake()->name(),
'email' => fake()->unique()->safeEmail(),
'email_verified_at' => now(),
'password' => static::$password ??= Hash::make('password'),
'remember_token' => Str::random(10),
'password' => static::$password ??= Hash::make('password'),
'remember_token' => Str::random(10),
];
}

View File

@@ -13,7 +13,8 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class() extends Migration {
return new class() extends Migration
{
/**
* Run the migrations.
*/

View File

@@ -13,7 +13,8 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class() extends Migration {
return new class() extends Migration
{
/**
* Run the migrations.
*/

View File

@@ -13,7 +13,8 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class() extends Migration {
return new class() extends Migration
{
/**
* Run the migrations.
*/

View File

@@ -13,7 +13,8 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class() extends Migration {
return new class() extends Migration
{
/**
* Run the migrations.
*/

View File

@@ -25,7 +25,7 @@ class DatabaseSeeder extends Seeder
\App\Models\User::factory()->create([
// 'name' => 'Test User',
'email' => 'test@test.com',
'email' => 'test@test.com',
'password' => bcrypt('test123'),
]);
}