Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions app/Http/Controllers/adminController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class adminController extends Controller
{
function showAdminHome(){
return view('admin.adminhome');
}

function showAdminAdd(){
return view('admin.adminadd');
}
}
1 change: 1 addition & 0 deletions resources/views/admin/adminadd.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>This is Create Page</h1>
12 changes: 12 additions & 0 deletions resources/views/admin/adminhome.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<h1>This is Admin HOme</h1>
</body>
</html>
17 changes: 17 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?php

use App\Http\Controllers\adminController;
use App\Http\Controllers\userController;
use Illuminate\Support\Facades\Route;


/*
|--------------------------------------------------------------------------
| Web Routes
Expand All @@ -25,6 +27,21 @@


// Admin Controller
Route::controller(adminController::class)->group(function(){
Route::prefix('admin')->group(function(){
Route::get('/home','showAdminHome')->name('adminhome');
Route::get('/create','showAdminAdd')->name('admincreate');
});
});









// Route::get('/',[userController::class,'showHome'])->name('home');
// Route::get('/home/{name?}',[userController::class,'showHome']);
// Route::get('/properties',[userController::class,'showProperties'])->name('properties');
Expand Down