diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..71289e8 --- /dev/null +++ b/.htaccess @@ -0,0 +1,3 @@ + + RewriteEngine On RewriteRule ^(.*)$ public/$1 [L] + diff --git a/error_log b/error_log new file mode 100644 index 0000000..5796ae3 --- /dev/null +++ b/error_log @@ -0,0 +1,68 @@ +[05-Apr-2026 09:20:36 UTC] PHP Fatal error: Uncaught Error: Undefined constant "_DIR_" in /home/tamyhost/public_html/E31232303/index.php:14 +Stack trace: +#0 {main} + thrown in /home/tamyhost/public_html/E31232303/index.php on line 14 +[05-Apr-2026 09:20:39 UTC] PHP Fatal error: Uncaught Error: Undefined constant "_DIR_" in /home/tamyhost/public_html/E31232303/index.php:14 +Stack trace: +#0 {main} + thrown in /home/tamyhost/public_html/E31232303/index.php on line 14 +[05-Apr-2026 09:20:48 UTC] PHP Fatal error: Uncaught Error: Undefined constant "_DIR_" in /home/tamyhost/public_html/E31232303/index.php:14 +Stack trace: +#0 {main} + thrown in /home/tamyhost/public_html/E31232303/index.php on line 14 +[05-Apr-2026 09:21:02 UTC] PHP Fatal error: Uncaught Error: Undefined constant "_DIR_" in /home/tamyhost/public_html/E31232303/index.php:14 +Stack trace: +#0 {main} + thrown in /home/tamyhost/public_html/E31232303/index.php on line 14 +[05-Apr-2026 09:21:05 UTC] PHP Fatal error: Uncaught Error: Undefined constant "_DIR_" in /home/tamyhost/public_html/E31232303/index.php:14 +Stack trace: +#0 {main} + thrown in /home/tamyhost/public_html/E31232303/index.php on line 14 +[05-Apr-2026 09:21:06 UTC] PHP Fatal error: Uncaught Error: Undefined constant "_DIR_" in /home/tamyhost/public_html/E31232303/index.php:14 +Stack trace: +#0 {main} + thrown in /home/tamyhost/public_html/E31232303/index.php on line 14 +[05-Apr-2026 09:21:07 UTC] PHP Fatal error: Uncaught Error: Undefined constant "_DIR_" in /home/tamyhost/public_html/E31232303/index.php:14 +Stack trace: +#0 {main} + thrown in /home/tamyhost/public_html/E31232303/index.php on line 14 +[05-Apr-2026 09:21:07 UTC] PHP Fatal error: Uncaught Error: Undefined constant "_DIR_" in /home/tamyhost/public_html/E31232303/index.php:14 +Stack trace: +#0 {main} + thrown in /home/tamyhost/public_html/E31232303/index.php on line 14 +[05-Apr-2026 09:21:08 UTC] PHP Fatal error: Uncaught Error: Undefined constant "_DIR_" in /home/tamyhost/public_html/E31232303/index.php:14 +Stack trace: +#0 {main} + thrown in /home/tamyhost/public_html/E31232303/index.php on line 14 +[05-Apr-2026 09:21:08 UTC] PHP Fatal error: Uncaught Error: Undefined constant "_DIR_" in /home/tamyhost/public_html/E31232303/index.php:14 +Stack trace: +#0 {main} + thrown in /home/tamyhost/public_html/E31232303/index.php on line 14 +[05-Apr-2026 09:27:08 UTC] PHP Fatal error: Uncaught Error: Undefined constant "_DIR_" in /home/tamyhost/public_html/E31232303/index.php:14 +Stack trace: +#0 {main} + thrown in /home/tamyhost/public_html/E31232303/index.php on line 14 +[05-Apr-2026 09:27:10 UTC] PHP Fatal error: Uncaught Error: Undefined constant "_DIR_" in /home/tamyhost/public_html/E31232303/index.php:14 +Stack trace: +#0 {main} + thrown in /home/tamyhost/public_html/E31232303/index.php on line 14 +[05-Apr-2026 09:29:53 UTC] PHP Fatal error: Uncaught Error: Undefined constant "_DIR_" in /home/tamyhost/public_html/E31232303/index.php:14 +Stack trace: +#0 {main} + thrown in /home/tamyhost/public_html/E31232303/index.php on line 14 +[05-Apr-2026 09:32:18 UTC] PHP Fatal error: Uncaught Error: Undefined constant "_DIR_" in /home/tamyhost/public_html/E31232303/index.php:14 +Stack trace: +#0 {main} + thrown in /home/tamyhost/public_html/E31232303/index.php on line 14 +[05-Apr-2026 09:34:42 UTC] PHP Fatal error: Uncaught Error: Undefined constant "_DIR_" in /home/tamyhost/public_html/E31232303/index.php:14 +Stack trace: +#0 {main} + thrown in /home/tamyhost/public_html/E31232303/index.php on line 14 +[05-Apr-2026 09:37:07 UTC] PHP Fatal error: Uncaught Error: Undefined constant "_DIR_" in /home/tamyhost/public_html/E31232303/index.php:14 +Stack trace: +#0 {main} + thrown in /home/tamyhost/public_html/E31232303/index.php on line 14 +[05-Apr-2026 09:37:24 UTC] PHP Fatal error: Uncaught Error: Undefined constant "_DIR_" in /home/tamyhost/public_html/E31232303/index.php:14 +Stack trace: +#0 {main} + thrown in /home/tamyhost/public_html/E31232303/index.php on line 14 diff --git a/public/composer.json b/public/composer.json new file mode 100644 index 0000000..32bcb9a --- /dev/null +++ b/public/composer.json @@ -0,0 +1,88 @@ +{ + "$schema": "https://getcomposer.org/schema.json", + "name": "laravel/laravel", + "type": "project", + "description": "The skeleton application for the Laravel framework.", + "keywords": ["laravel", "framework"], + "license": "MIT", + "require": { + "php": "^8.2", + "barryvdh/laravel-dompdf": "^3.1", + "laravel/framework": "^12.0", + "laravel/tinker": "^2.10.1" + }, + "require-dev": { + "fakerphp/faker": "^1.23", + "laravel/breeze": "^2.3", + "laravel/pail": "^1.2.2", + "laravel/pint": "^1.24", + "laravel/sail": "^1.41", + "mockery/mockery": "^1.6", + "nunomaduro/collision": "^8.6", + "phpunit/phpunit": "^11.5.3" + }, + "autoload": { + "psr-4": { + "App\\": "app/", + "Database\\Factories\\": "database/factories/", + "Database\\Seeders\\": "database/seeders/" + } + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests/" + } + }, + "scripts": { + "setup": [ + "composer install", + "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"", + "@php artisan key:generate", + "@php artisan migrate --force", + "npm install", + "npm run build" + ], + "dev": [ + "Composer\\Config::disableProcessTimeout", + "npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1 --timeout=0\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite --kill-others" + ], + "test": [ + "@php artisan config:clear --ansi", + "@php artisan test" + ], + "post-autoload-dump": [ + "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", + "@php artisan package:discover --ansi" + ], + "post-update-cmd": [ + "@php artisan vendor:publish --tag=laravel-assets --ansi --force" + ], + "post-root-package-install": [ + "@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 artisan migrate --graceful --ansi" + ], + "pre-package-uninstall": [ + "Illuminate\\Foundation\\ComposerScripts::prePackageUninstall" + ] + }, + "extra": { + "laravel": { + "dont-discover": [] + } + }, + "config": { + "optimize-autoloader": true, + "preferred-install": "dist", + "sort-packages": true, + "allow-plugins": { + "pestphp/pest-plugin": true, + "php-http/discovery": true + } + }, + "minimum-stability": "stable", + "prefer-stable": true +} diff --git a/vite.config.js b/vite.config.js index 421b569..498ee23 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,10 +1,10 @@ -import { defineConfig } from 'vite'; -import laravel from 'laravel-vite-plugin'; +import { defineConfig } from "vite"; +import laravel from "laravel-vite-plugin"; export default defineConfig({ plugins: [ laravel({ - input: ['resources/css/app.css', 'resources/js/app.js'], + input: ["resources/css/app.css", "resources/js/app.js"], refresh: true, }), ],