Answer the question
In order to leave comments, you need to log in
Class "view" does not exist - Laravel why?
Help me understand what the problem is
. In the local copy, everything works. I posted it on the hosting, there was a problem.
There are 2 controllers with the same structure:
GoodsController
<?php namespace Backend;
class GoodsController extends \BaseController {
<?php namespace Backend;
class MenuController extends \BaseController {
Route::group(array('prefix' => 'backend', "namespace" => '\Backend'), function () {
Route::get('/', function() {
if(Auth::check() && Auth::user()->role == 10) return Redirect::to('backend/goods');
else return Redirect::to('backend/login');
});
Route::get('login', array('as' => 'backend.login', 'uses' => '[email protected]'));
Route::post('login', array('as' => 'backend.login.post', 'uses' => '[email protected]'));
Route::group(array('before' => 'auth|admin'), function () {
Route::get('logout', '[email protected]');
Route::resource("goods", 'GoodsController');
Route::resource("menu", "MenuController");
});
});
ReflectionException (-1)
Class \Backend\MenuController does not exist
...
$reflector = new ReflectionClass($concrete);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question