Skip to content

Commit

Permalink
feat: fuck single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardotglobal committed Jul 15, 2024
1 parent cfe9642 commit 0a4a973
Show file tree
Hide file tree
Showing 32 changed files with 377 additions and 399 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,14 @@ yarn-error.log
/.fleet
/.idea
/.vscode
/storage/**/*
!/storage/logs
!/storage/app
!/storage/app/public
!/storage/framework
!/storage/framework/cache
!/storage/framework/cache/data
!/storage/framework/sessions
!/storage/framework/testing
!/storage/framework/views
bun.lockb
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Laravel has the most extensive and thorough [documentation](https://laravel.com/

You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch.

If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
If you don"t feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

## Laravel Sponsors

Expand Down
6 changes: 3 additions & 3 deletions artisan
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

use Symfony\Component\Console\Input\ArgvInput;

define('LARAVEL_START', microtime(true));
define("LARAVEL_START", microtime(true));

// Register the Composer autoloader...
require __DIR__.'/vendor/autoload.php';
require __DIR__."/vendor/autoload.php";

// Bootstrap Laravel and handle the command...
$status = (require_once __DIR__.'/bootstrap/app.php')
$status = (require_once __DIR__."/bootstrap/app.php")
->handleCommand(new ArgvInput);

exit($status);
6 changes: 3 additions & 3 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__.'/../routes/web.php',
commands: __DIR__.'/../routes/console.php',
health: '/up',
web: __DIR__."/../routes/web.php",
commands: __DIR__."/../routes/console.php",
health: "/up",
)
->withMiddleware(function (Middleware $middleware) {
//
Expand Down
50 changes: 25 additions & 25 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,57 +4,57 @@ services:
context: ./vendor/laravel/sail/runtimes/8.3
dockerfile: Dockerfile
args:
WWWGROUP: '${WWWGROUP}'
WWWGROUP: "${WWWGROUP}"
image: sail-8.3/app
extra_hosts:
- 'host.docker.internal:host-gateway'
- "host.docker.internal:host-gateway"
ports:
- '${APP_PORT:-80}:80'
- '${VITE_PORT:-5173}:${VITE_PORT:-5173}'
- "${APP_PORT:-80}:80"
- "${VITE_PORT:-5173}:${VITE_PORT:-5173}"
environment:
WWWUSER: '${WWWUSER}'
WWWUSER: "${WWWUSER}"
LARAVEL_SAIL: 1
XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
IGNITION_LOCAL_SITES_PATH: '${PWD}'
XDEBUG_MODE: "${SAIL_XDEBUG_MODE:-off}"
XDEBUG_CONFIG: "${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}"
IGNITION_LOCAL_SITES_PATH: "${PWD}"
volumes:
- '.:/var/www/html'
- ".:/var/www/html"
networks:
- sail
depends_on:
- pgsql
- redis
pgsql:
image: 'postgres:15'
image: "postgres:15"
ports:
- '${FORWARD_DB_PORT:-5432}:5432'
- "${FORWARD_DB_PORT:-5432}:5432"
environment:
PGPASSWORD: '${DB_PASSWORD:-secret}'
POSTGRES_DB: '${DB_DATABASE}'
POSTGRES_USER: '${DB_USERNAME}'
POSTGRES_PASSWORD: '${DB_PASSWORD:-secret}'
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'
- "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}'
- "-q"
- "-d"
- "${DB_DATABASE}"
- "-U"
- "${DB_USERNAME}"
retries: 3
timeout: 5s
redis:
image: 'redis:alpine'
image: "redis:alpine"
ports:
- '${FORWARD_REDIS_PORT:-6379}:6379'
- "${FORWARD_REDIS_PORT:-6379}:6379"
volumes:
- 'sail-redis:/data'
- "sail-redis:/data"
networks:
- sail
healthcheck:
Expand Down
184 changes: 92 additions & 92 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
|
*/

'default' => env('DB_CONNECTION', 'sqlite'),
"default" => env("DB_CONNECTION", "sqlite"),

/*
|--------------------------------------------------------------------------
Expand All @@ -25,88 +25,88 @@
|
| Below are all of the database connections defined for your application.
| An example configuration is provided for each database system which
| is supported by Laravel. You're free to add / remove connections.
| is supported by Laravel. You"re free to add / remove connections.
|
*/

'connections' => [
"connections" => [

'sqlite' => [
'driver' => 'sqlite',
'url' => env('DB_URL'),
'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => '',
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
"sqlite" => [
"driver" => "sqlite",
"url" => env("DB_URL"),
"database" => env("DB_DATABASE", database_path("database.sqlite")),
"prefix" => "",
"foreign_key_constraints" => env("DB_FOREIGN_KEYS", true),
],

'mysql' => [
'driver' => 'mysql',
'url' => env('DB_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => env('DB_CHARSET', 'utf8mb4'),
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
'prefix' => '',
'prefix_indexes' => true,
'strict' => true,
'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
"mysql" => [
"driver" => "mysql",
"url" => env("DB_URL"),
"host" => env("DB_HOST", "127.0.0.1"),
"port" => env("DB_PORT", "3306"),
"database" => env("DB_DATABASE", "laravel"),
"username" => env("DB_USERNAME", "root"),
"password" => env("DB_PASSWORD", ""),
"unix_socket" => env("DB_SOCKET", ""),
"charset" => env("DB_CHARSET", "utf8mb4"),
"collation" => env("DB_COLLATION", "utf8mb4_unicode_ci"),
"prefix" => "",
"prefix_indexes" => true,
"strict" => true,
"engine" => null,
"options" => extension_loaded("pdo_mysql") ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env("MYSQL_ATTR_SSL_CA"),
]) : [],
],

'mariadb' => [
'driver' => 'mariadb',
'url' => env('DB_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => env('DB_CHARSET', 'utf8mb4'),
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
'prefix' => '',
'prefix_indexes' => true,
'strict' => true,
'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
"mariadb" => [
"driver" => "mariadb",
"url" => env("DB_URL"),
"host" => env("DB_HOST", "127.0.0.1"),
"port" => env("DB_PORT", "3306"),
"database" => env("DB_DATABASE", "laravel"),
"username" => env("DB_USERNAME", "root"),
"password" => env("DB_PASSWORD", ""),
"unix_socket" => env("DB_SOCKET", ""),
"charset" => env("DB_CHARSET", "utf8mb4"),
"collation" => env("DB_COLLATION", "utf8mb4_unicode_ci"),
"prefix" => "",
"prefix_indexes" => true,
"strict" => true,
"engine" => null,
"options" => extension_loaded("pdo_mysql") ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env("MYSQL_ATTR_SSL_CA"),
]) : [],
],

'pgsql' => [
'driver' => 'pgsql',
'url' => env('DB_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '5432'),
'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'charset' => env('DB_CHARSET', 'utf8'),
'prefix' => '',
'prefix_indexes' => true,
'search_path' => 'public',
'sslmode' => 'prefer',
"pgsql" => [
"driver" => "pgsql",
"url" => env("DB_URL"),
"host" => env("DB_HOST", "127.0.0.1"),
"port" => env("DB_PORT", "5432"),
"database" => env("DB_DATABASE", "laravel"),
"username" => env("DB_USERNAME", "root"),
"password" => env("DB_PASSWORD", ""),
"charset" => env("DB_CHARSET", "utf8"),
"prefix" => "",
"prefix_indexes" => true,
"search_path" => "public",
"sslmode" => "prefer",
],

'sqlsrv' => [
'driver' => 'sqlsrv',
'url' => env('DB_URL'),
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '1433'),
'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'charset' => env('DB_CHARSET', 'utf8'),
'prefix' => '',
'prefix_indexes' => true,
// 'encrypt' => env('DB_ENCRYPT', 'yes'),
// 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'),
"sqlsrv" => [
"driver" => "sqlsrv",
"url" => env("DB_URL"),
"host" => env("DB_HOST", "localhost"),
"port" => env("DB_PORT", "1433"),
"database" => env("DB_DATABASE", "laravel"),
"username" => env("DB_USERNAME", "root"),
"password" => env("DB_PASSWORD", ""),
"charset" => env("DB_CHARSET", "utf8"),
"prefix" => "",
"prefix_indexes" => true,
// "encrypt" => env("DB_ENCRYPT", "yes"),
// "trust_server_certificate" => env("DB_TRUST_SERVER_CERTIFICATE", "false"),
],

],
Expand All @@ -118,13 +118,13 @@
|
| This table keeps track of all the migrations that have already run for
| your application. Using this information, we can determine which of
| the migrations on disk haven't actually been run on the database.
| the migrations on disk haven"t actually been run on the database.
|
*/

'migrations' => [
'table' => 'migrations',
'update_date_on_publish' => true,
"migrations" => [
"table" => "migrations",
"update_date_on_publish" => true,
],

/*
Expand All @@ -138,31 +138,31 @@
|
*/

'redis' => [
"redis" => [

'client' => env('REDIS_CLIENT', 'phpredis'),
"client" => env("REDIS_CLIENT", "phpredis"),

'options' => [
'cluster' => env('REDIS_CLUSTER', 'redis'),
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
"options" => [
"cluster" => env("REDIS_CLUSTER", "redis"),
"prefix" => env("REDIS_PREFIX", Str::slug(env("APP_NAME", "laravel"), "_")."_database_"),
],

'default' => [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'username' => env('REDIS_USERNAME'),
'password' => env('REDIS_PASSWORD'),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_DB', '0'),
"default" => [
"url" => env("REDIS_URL"),
"host" => env("REDIS_HOST", "127.0.0.1"),
"username" => env("REDIS_USERNAME"),
"password" => env("REDIS_PASSWORD"),
"port" => env("REDIS_PORT", "6379"),
"database" => env("REDIS_DB", "0"),
],

'cache' => [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'username' => env('REDIS_USERNAME'),
'password' => env('REDIS_PASSWORD'),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_CACHE_DB', '1'),
"cache" => [
"url" => env("REDIS_URL"),
"host" => env("REDIS_HOST", "127.0.0.1"),
"username" => env("REDIS_USERNAME"),
"password" => env("REDIS_PASSWORD"),
"port" => env("REDIS_PORT", "6379"),
"database" => env("REDIS_CACHE_DB", "1"),
],

],
Expand Down
Loading

0 comments on commit 0a4a973

Please sign in to comment.