diff options
| author | Sam Light <sam@lightscale.co.uk> | 2025-03-30 20:39:33 +0100 | 
|---|---|---|
| committer | Sam Light <samlight1994@gmail.com> | 2025-03-30 20:39:33 +0100 | 
| commit | e5d5fec5f782e6abf8628f3e1d11a8cbbe70a677 (patch) | |
| tree | 8784cd8891b309624db0f28595394fc66f508104 /workbench | |
| parent | c9d238d8b8b19ed6e772348da1b91001cae3004a (diff) | |
Setup workbench
Diffstat (limited to 'workbench')
| -rw-r--r-- | workbench/.gitignore | 2 | ||||
| -rw-r--r-- | workbench/app/Providers/WorkbenchServiceProvider.php | 24 | ||||
| -rw-r--r-- | workbench/bootstrap/app.php | 18 | ||||
| -rw-r--r-- | workbench/resources/views/index.blade.php | 16 | ||||
| -rw-r--r-- | workbench/routes/web.php | 7 | 
5 files changed, 67 insertions, 0 deletions
| diff --git a/workbench/.gitignore b/workbench/.gitignore new file mode 100644 index 0000000..7260321 --- /dev/null +++ b/workbench/.gitignore @@ -0,0 +1,2 @@ +.env +.env.dusk diff --git a/workbench/app/Providers/WorkbenchServiceProvider.php b/workbench/app/Providers/WorkbenchServiceProvider.php new file mode 100644 index 0000000..e8cec9c --- /dev/null +++ b/workbench/app/Providers/WorkbenchServiceProvider.php @@ -0,0 +1,24 @@ +<?php + +namespace Workbench\App\Providers; + +use Illuminate\Support\ServiceProvider; + +class WorkbenchServiceProvider extends ServiceProvider +{ +    /** +     * Register services. +     */ +    public function register(): void +    { +        // +    } + +    /** +     * Bootstrap services. +     */ +    public function boot(): void +    { +        // +    } +} diff --git a/workbench/bootstrap/app.php b/workbench/bootstrap/app.php new file mode 100644 index 0000000..f8806ca --- /dev/null +++ b/workbench/bootstrap/app.php @@ -0,0 +1,18 @@ +<?php + +use Illuminate\Foundation\Application; +use Illuminate\Foundation\Configuration\Exceptions; +use Illuminate\Foundation\Configuration\Middleware; + +use function Orchestra\Testbench\default_skeleton_path; + +return Application::configure(basePath: $APP_BASE_PATH ?? default_skeleton_path()) +    ->withRouting( +        web: __DIR__.'/../routes/web.php', +    ) +    ->withMiddleware(function (Middleware $middleware) { +        // +    }) +    ->withExceptions(function (Exceptions $exceptions) { +        // +    })->create(); diff --git a/workbench/resources/views/index.blade.php b/workbench/resources/views/index.blade.php new file mode 100644 index 0000000..1c05dfc --- /dev/null +++ b/workbench/resources/views/index.blade.php @@ -0,0 +1,16 @@ +<!DOCTYPE HTML> +<html> +    <head> +        <title> +            {{ $title = __('Laralight assets testing') }} +        </title> +    </head> +    <body> +        <h1> +            {{ $title }} +        </h1> +        <h2> +            {{ __('testing enviroment for laravel assets library') }} +        </h2> +    </body> +</html> diff --git a/workbench/routes/web.php b/workbench/routes/web.php new file mode 100644 index 0000000..67e84cf --- /dev/null +++ b/workbench/routes/web.php @@ -0,0 +1,7 @@ +<?php + +use Illuminate\Support\Facades\Route; + +Route::get('/', function () { +    return view('index'); +}); | 
