dimanche 19 juin 2016

Laravel routing 404 error (Page not found)

I have set up a controller for a sub folder in laravel 5 and I get a 404 error on the url /admin/home

AdminController.php - inside the controllers folder

<?php

namespace App\Http\Controllers;

class AdminController extends Controller
{

    public function __construct()
    {
        $this->middleware('guest');
    }


    public function home()
    {
        return view('admin.home');
    }

}; 

Route.php

Route::get('home' , 'AdminController@home');

home.php - inside views/Admin

@extends('admin')

@section('content')
<h1>Section admin home</h1>

@stop



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire