feat: update to Laravel 12 starter kit (#1)

fix: path of ScreenGeneratorCommand
This commit is contained in:
Benjamin Nussbaum 2025-02-25 12:15:35 +01:00 committed by GitHub
parent 199511816e
commit 94f5cabcff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
110 changed files with 3260 additions and 3524 deletions

View file

@ -5,27 +5,31 @@ use Illuminate\Support\Facades\Route;
use Livewire\Volt\Volt;
Route::middleware('guest')->group(function () {
// Volt::route('register', 'pages.auth.register')
// ->name('register');
Volt::route('login', 'pages.auth.login')
Volt::route('login', 'auth.login')
->name('login');
Volt::route('forgot-password', 'pages.auth.forgot-password')
Volt::route('register', 'auth.register')
->name('register');
Volt::route('forgot-password', 'auth.forgot-password')
->name('password.request');
Volt::route('reset-password/{token}', 'pages.auth.reset-password')
Volt::route('reset-password/{token}', 'auth.reset-password')
->name('password.reset');
});
Route::middleware('auth')->group(function () {
Volt::route('verify-email', 'pages.auth.verify-email')
Volt::route('verify-email', 'auth.verify-email')
->name('verification.notice');
Route::get('verify-email/{id}/{hash}', VerifyEmailController::class)
->middleware(['signed', 'throttle:6,1'])
->name('verification.verify');
Volt::route('confirm-password', 'pages.auth.confirm-password')
Volt::route('confirm-password', 'auth.confirm-password')
->name('password.confirm');
});
Route::post('logout', App\Livewire\Actions\Logout::class)
->name('logout');

View file

@ -3,6 +3,6 @@
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');
//Artisan::command('inspire', function () {
// $this->comment(Inspiring::quote());
//})->purpose('Display an inspiring quote')->hourly();

View file

@ -1,30 +1,36 @@
<?php
use Illuminate\Support\Facades\Route;
use Livewire\Volt\Volt;
Route::view('/', 'welcome');
Route::get('/', function () {
return view('welcome');
})->name('home');
Route::view('dashboard', 'dashboard')
->middleware(['auth', 'verified'])
->name('dashboard');
Route::view('profile', 'profile')
->middleware(['auth'])
->name('profile');
Route::middleware(['auth'])->group(function () {
Route::redirect('settings', 'settings/profile');
Volt::route('settings/profile', 'settings.profile')->name('settings.profile');
Volt::route('settings/password', 'settings.password')->name('settings.password');
Volt::route('settings/appearance', 'settings.appearance')->name('settings.appearance');
Route::middleware(['auth:sanctum', 'verified'])->group(function () {
Route::get('/devices', function () {
return view('devices');
})->name('devices');
Route::get('/devices/{device}/configure', function (App\Models\Device $device) {
$current_image_uuid = auth()->user()->devices()->find($device->id)->current_screen_image;
$current_image_path = 'images/generated/'.$current_image_uuid.'.png';
$current_image_path = 'images/generated/' . $current_image_uuid . '.png';
return view('devices.configure', compact('device'), [
'image' => ($current_image_uuid) ? url($current_image_path) : null,
]);
})->name('devices.configure');
});
require __DIR__.'/auth.php';
require __DIR__ . '/auth.php';