File size: 1,575 Bytes
d57331c
 
 
 
1251c2f
d57331c
 
 
 
 
 
 
 
 
 
 
 
 
1251c2f
 
 
 
 
 
 
 
 
60c127b
 
 
 
dd18d72
 
 
1251c2f
d57331c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\HomeController;
use App\Http\Controllers\DashboardController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/

Route::prefix("/")->controller(HomeController::class)->group(function(){
    Route::get('/','home')->name("home");
    Route::get('/login','login_form')->name("login.form");
    Route::get('/signup','signup_form')->name("signup.form");
    Route::post('/login/verify','login')->name("login");
    Route::post('/signup/verify','signup')->name("signup");
});

Route::prefix('/dashboard')->middleware('is_customuser')->controller(DashboardController::class)->group(function(){

    Route::get("/",'home')->name("dashboard");
    // Route::get("/explore",'explore')->name("dashboard.explore");
    Route::get("/myskills",'myskills')->name("dashboard.myskills");
    Route::post("/createskill",'createSkill')->name("dashboard.createskill");
    Route::get("/skill/{id}",'skill')->name("dashboard.skill");
    Route::post("/createtask/{skill_id}",'createTask')->name("dashboard.createtask");
    Route::get("/taskdetail/{task_id}",'taskDetail')->name("dashboard.taskdetail");
    Route::post("/taskpracticed",'taskPracticed')->name("dashboard.taskpracticed");

});