mardi 22 septembre 2015

Laravel 5 Controller Not working

I am using Laravel 5 and doing something like this-

app\Http\routes.php

Route::get('test','DashboardController@delete_a_entry');

app\Http\Controllers\DashboardController.php

    <?php namespace App\Http\Controllers;

    use App\Http\Controllers\Controller;

    class DashboardController extends Controller
    {
        public function showProfile($id)
        {
            return view('layouts.customer.dashboard');
        }
    }

resources/views/layouts/customer/dashboard

    <!DOCTYPE html>
    <html>
    <head>
    <title>Page Title</title>
    </head>
    <body>

    <h1>This is a Heading</h1>
    <p>This is a paragraph.</p>

    </body>
    </html>

But getting this error

enter image description here

What I am doing wrong?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire