PHP Classes

File: routes/frontend/user.php

Recommend this page to a friend!
  Classes of Nyi Nyi Lwin  >  mtube  >  routes/frontend/user.php  >  Download  
File: routes/frontend/user.php
Role: Example script
Content type: text/plain
Description: Example script
Class: mtube
Application to share videos between users
Author: By
Last change:
Date: 4 months ago
Size: 736 bytes
 

Contents

Class file image Download
<?php


use Illuminate\Support\Facades\Route;

Route::group(['middleware' => 'auth,forbid-banned-user'], function () {
   
Route::get('/user/dashboard', function () {
        return
view('frontend.user.dashboard');
    })->
name('user.dashboard');

   
Route::get('/user/profile', function () {
        return
view('frontend.user.profile.index');
    })->
name('user.profile');

   
Route::get('/user/channels', function () {
        return
view('frontend.user.channel.index');
    })->
name('user.channels');

   
Route::get('/user/channels/{id}', function ($id) {
        return
view('frontend.user.channel.show')->with([
           
'channel' => auth()->user()->channels()->find($id)
        ]);
    })->
name('user.channels.show');
});

For more information send a message to info at phpclasses dot org.