<?php
class AdminRestaurantsController extends AdminController {
/**
* Restaurant Model
* @var Restaurant
*/
protected $restaurant;
public function __construct(Restaurant restaurant)
{
parent::__construct();
$this->restaurant = $restaurant;
}
/**
* Display a listing of the resource.
*
* @return Response
*/
public function getIndex()
{
// Title
$title = Lang::get('admin/restaurants/title.restaurants_management');
// Grab all the restaurants
$restaurants = $this->restaurant;
// Show the page
return View::make('admin/restaurants/index', compact('restaurants', 'title'));
}
Hey guys,
I tried creating a new controller.
Here is the controller ( just the top ):
and here is the routes:
But I keep getting: Class AdminRestaurantsController does not exist
Thanks, Ara