Laravel unknown routing error -


i'm making authentication system laravel, there wrong. when i'm making page can viewed admin receive error:

> notfoundhttpexception in routecollection.php line 143: in routecollection.php line 143 @ routecollection->match(object(request)) in router.php line 746 @ router->findroute(object(request)) in router.php line 655 @ router->dispatchtoroute(object(request)) in router.php line 631 @ router->dispatch(object(request)) in kernel.php line 236 @ kernel->illuminate\foundation\http\{closure}(object(request)) @ call_user_func(object(closure), object(request)) in pipeline.php line 139 @ pipeline->illuminate\pipeline\{closure}(object(request)) in verifycsrftoken.php line 50 @ verifycsrftoken->handle(object(request), object(closure)) @ call_user_func_array(array(object(verifycsrftoken), 'handle'), array(object(request), object(closure))) in pipeline.php line 124 @ pipeline->illuminate\pipeline\{closure}(object(request)) in shareerrorsfromsession.php line 54 @ shareerrorsfromsession->handle(object(request), object(closure)) @ call_user_func_array(array(object(shareerrorsfromsession), 'handle'), array(object(request), object(closure))) in pipeline.php line 124 @ pipeline->illuminate\pipeline\{closure}(object(request)) in startsession.php line 62 @ startsession->handle(object(request), object(closure)) @ call_user_func_array(array(object(startsession), 'handle'), array(object(request), object(closure))) in pipeline.php line 124 @ pipeline->illuminate\pipeline\{closure}(object(request)) in addqueuedcookiestoresponse.php line 37 @ addqueuedcookiestoresponse->handle(object(request), object(closure)) @ call_user_func_array(array(object(addqueuedcookiestoresponse), 'handle'), array(object(request), object(closure))) in pipeline.php line 124 @ pipeline->illuminate\pipeline\{closure}(object(request)) in encryptcookies.php line 59 @ encryptcookies->handle(object(request), object(closure)) @ call_user_func_array(array(object(encryptcookies), 'handle'), array(object(request), object(closure))) in pipeline.php line 124 @ pipeline->illuminate\pipeline\{closure}(object(request)) in checkformaintenancemode.php line 42 @ checkformaintenancemode->handle(object(request), object(closure)) @ call_user_func_array(array(object(checkformaintenancemode), 'handle'), array(object(request), object(closure))) in pipeline.php line 124 @ pipeline->illuminate\pipeline\{closure}(object(request)) @ call_user_func(object(closure), object(request)) in pipeline.php line 103 @ pipeline->then(object(closure)) in kernel.php line 122 @ kernel->sendrequestthroughrouter(object(request)) in kernel.php line 87 @ kernel->handle(object(request)) in index.php line 54 

i have idea can wrong.

this code:

routes.php:

route::group(array('prefix' => 'admin', 'namespace' => 'admin', 'middleware' => 'auth'), function () {   route::get('users', 'userscontroller@index'); }); 

this controller (in controllers/admin):

public function index() {     $users = user::all();     return view('backend.users.index', compact('users')); } 

and view(in views/backend/users):

@extends('master') @section('title', 'all users') @section('content')      <div class="container col-md-8 col-md-offset-2">         <div class="panel panel-default">             <div class="panel-heading">                 <h2> users </h2>             </div>             @if (session('status'))                 <div class="alert alert-success">                     {{ session('status') }}                 </div>             @endif             @if ($users->isempty())                 <p> there no user.</p>             @else                 <table class="table">                     <thead>                     <tr>                         <th>id</th>                         <th>name</th>                         <th>email</th>                         <th>joined at</th>                      </tr>                     </thead>                     <tbody>                     @foreach($users $user)                         <tr>                             <td>{!! $user->id !!}</td>                             <td>                                 <a href="#">{!! $user->name !!} </a>                             </td>                             <td>{!! $user->email !!}</td>                             <td>{!! $user->created_at !!}</td>                         </tr>                     @endforeach                     </tbody>                 </table>             @endif         </div>     </div>  @endsection 


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -