We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I found that the references to the controllers in admin_routes.php needed to be adjusted.
rather than: Route::get('video', 'App\Http\Controllers\Admin\VideoController@index');
Route::get('video', 'App\Http\Controllers\Admin\VideoController@index');
It just needed to be Route::get('video', 'Admin\VideoController@index');
Route::get('video', 'Admin\VideoController@index');
This applies to all controller references in admin_routes.php
In addition, I needed to comment/remove the csrf middleware line in AdminController::__construct()
<?php namespace App\Http\Controllers; class AdminController extends BaseController { /** * Initializer. * * @return \AdminController */ public function __construct() { parent::__construct(); //$this->middleware('csrf'); $this->middleware('auth'); $this->middleware('admin'); } }
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
c832bc4
+1 THANK you very much @scangroup!
No branches or pull requests
I found that the references to the controllers in admin_routes.php needed to be adjusted.
rather than:
Route::get('video', 'App\Http\Controllers\Admin\VideoController@index');
It just needed to be
Route::get('video', 'Admin\VideoController@index');
This applies to all controller references in admin_routes.php
In addition, I needed to comment/remove the csrf middleware line in AdminController::__construct()
The text was updated successfully, but these errors were encountered: