Route::post("subcatagory/destroy/{slug}", ["uses" => "SubcatagoryController@destroy"]); // Content Management Route::post('dashboard/storeContent', array('as' => 'add-content', 'uses' => 'ContentManagement@store')); Route::post('dashboard/changeSettings', array('as' => 'change-settings', 'uses' => 'ContentManagement@change')); Route::post('dashboard/changeStatus', array('as' => 'change-status', 'uses' => 'ContentManagement@status')); Route::post('dashboard/update-content', array('as' => 'update-content', 'uses' => 'ContentManagement@update')); Route::post('dashboard/delete-content', array('as' => 'delete-content', 'uses' => 'ContentManagement@delete')); // Slider Route::post('dashboard/add-slider-post', array('as' => 'add-slider', 'uses' => 'SliderController@addSlider')); Route::post('dashboard/slider-status', array('as' => 'slider-status', 'uses' => 'SliderController@changeStatus')); Route::post('dashboard/update/{id}', array('as' => 'update-slider', 'uses' => 'SliderController@update')); Route::post('dashboard/delete', array('as' => 'delete-slider', 'uses' => 'SliderController@delete')); }); // Ajax Route::post("dashboard/finduser", function () { $notice = Input::get('notice_id'); $user = Input::get("id"); $find = NoticeUserAssociate::where("notice_id", $notice)->where("user_id", $user); if ($find->count() > 0) { $find->delete(); } else { $create = new NoticeUserAssociate(); $create->notice_id = $notice; $create->user_id = $user; $create->save(); } }); }); App::missing(function ($exception) { return Response::view("Main.404", [], 404); });