Update routes
This commit is contained in:
parent
4fd2d11137
commit
b1b46190fc
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
class ClientController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return view('clients.index');
|
||||
}
|
||||
}
|
||||
|
|
@ -1,17 +1,23 @@
|
|||
<?php
|
||||
|
||||
use App\Http\Controllers\ClientController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::get('/', function () {
|
||||
return view('welcome');
|
||||
})->name('home');
|
||||
|
||||
Route::view('dashboard', 'dashboard')
|
||||
->middleware(['auth', 'verified'])
|
||||
->name('dashboard');
|
||||
Route::middleware(['auth', 'verified'])->group(function () {
|
||||
Route::view('dashboard', 'dashboard')->name('dashboard');
|
||||
Route::resource('clients', ClientController::class)->names('clients');
|
||||
});
|
||||
|
||||
Route::view('clients', 'clients.index')
|
||||
->middleware(['auth', 'verified'])
|
||||
->name('clients.index');
|
||||
// Route::view('dashboard', 'dashboard')
|
||||
// ->middleware(['auth', 'verified'])
|
||||
// ->name('dashboard');
|
||||
|
||||
// Route::view('clients', 'clients.index')
|
||||
// ->middleware(['auth', 'verified'])
|
||||
// ->name('clients.index');
|
||||
|
||||
require __DIR__.'/settings.php';
|
||||
|
|
|
|||
Loading…
Reference in New Issue