Initial work

This commit is contained in:
2025-08-30 16:11:06 +02:00
parent 4e5f154492
commit 774d1cf45f
41 changed files with 1217 additions and 281 deletions

View File

@@ -1,8 +1,13 @@
<?php
use App\Services\BotService;
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Schedule;
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');
Schedule::call(fn() => app(BotService::class)->run())->everyMinute();

View File

@@ -1,5 +1,8 @@
<?php
use App\Livewire\CreateBot;
use App\Livewire\CreateEditBot;
use App\Livewire\EditBot;
use App\Livewire\Settings\Appearance;
use App\Livewire\Settings\Password;
use App\Livewire\Settings\Profile;
@@ -9,11 +12,16 @@ Route::get('/', function () {
return view('welcome');
})->name('home');
Route::view('dashboard', 'dashboard')
Route::get('dashboard', [App\Http\Controllers\DashboardController::class, 'index'])
->middleware(['auth', 'verified'])
->name('dashboard');
Route::middleware(['auth'])->group(function () {
Route::get('bots/create', CreateEditBot::class)
->name('bots.create');
Route::get('bots/edit/{bot}', CreateEditBot::class)
->name('bots.edit');
Route::redirect('settings', 'settings/profile');
Route::get('settings/profile', Profile::class)->name('settings.profile');