Skip to content

Commit

Permalink
fix: fuck single quotes x2
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardotglobal committed Jul 17, 2024
1 parent 059d264 commit 565c15a
Show file tree
Hide file tree
Showing 14 changed files with 330 additions and 366 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ yarn-error.log
!/storage/framework/testing
!/storage/framework/views
bun.lockb
data
46 changes: 46 additions & 0 deletions app/Models/Book.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;

class Book extends Model
{
use HasFactory, Notifiable;

/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
"name",
"email",
"password",
];

/**
* The attributes that should be hidden for serialization.
*
* @var array<int, string>
*/
protected $hidden = [
"password",
"remember_token",
];

/**
* Get the attributes that should be cast.
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
"email_verified_at" => "datetime",
"password" => "hashed",
];
}
}
14 changes: 7 additions & 7 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class User extends Authenticatable
* @var array<int, string>
*/
protected $fillable = [
'name',
'email',
'password',
"name",
"email",
"password",
];

/**
Expand All @@ -28,8 +28,8 @@ class User extends Authenticatable
* @var array<int, string>
*/
protected $hidden = [
'password',
'remember_token',
"password",
"remember_token",
];

/**
Expand All @@ -40,8 +40,8 @@ class User extends Authenticatable
protected function casts(): array
{
return [
'email_verified_at' => 'datetime',
'password' => 'hashed',
"email_verified_at" => "datetime",
"password" => "hashed",
];
}
}
4 changes: 2 additions & 2 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__."/../routes/web.php",
commands: __DIR__."/../routes/console.php",
web: __DIR__ . "/../routes/web.php",
commands: __DIR__ . "/../routes/console.php",
health: "/up",
)
->withMiddleware(function (Middleware $middleware) {
Expand Down
29 changes: 1 addition & 28 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,11 @@ services:
IGNITION_LOCAL_SITES_PATH: "${PWD}"
volumes:
- ".:/var/www/html"
- "/Users/oskar/CalibuhTest:/data"
networks:
- sail
depends_on:
- pgsql
- redis
pgsql:
image: "postgres:15"
ports:
- "${FORWARD_DB_PORT:-5432}:5432"
environment:
PGPASSWORD: "${DB_PASSWORD:-secret}"
POSTGRES_DB: "${DB_DATABASE}"
POSTGRES_USER: "${DB_USERNAME}"
POSTGRES_PASSWORD: "${DB_PASSWORD:-secret}"
volumes:
- "sail-pgsql:/var/lib/postgresql/data"
- "./vendor/laravel/sail/database/pgsql/create-testing-database.sql:/docker-entrypoint-initdb.d/10-create-testing-database.sql"
networks:
- sail
healthcheck:
test:
- CMD
- pg_isready
- "-q"
- "-d"
- "${DB_DATABASE}"
- "-U"
- "${DB_USERNAME}"
retries: 3
timeout: 5s
redis:
image: "redis:alpine"
ports:
Expand All @@ -68,7 +43,5 @@ networks:
sail:
driver: bridge
volumes:
sail-pgsql:
driver: local
sail-redis:
driver: local
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
"@php -r \"file_exists(".env") || copy(".env.example", ".env");\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi",
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",
"@php -r \"file_exists("database/database.sqlite") || touch("database/database.sqlite");\"",
"@php artisan migrate --graceful --ansi"
]
},
Expand Down
69 changes: 35 additions & 34 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 565c15a

Please sign in to comment.