/** * This method controls what happens when you move to /dashboard/create in your app. * Creates a new note. This is usually the target of form submit actions. * POST request. */ public function create() { // All methods inside this controller are only accessible for admins (= users that have role type 7) Auth::checkAdminAuthentication(); MaterialModel::createMaterial(); Redirect::to('material/index/0'); }