app/Http/Controllers/Admin/StatesController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\State  $state
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(State $state)
    {
        if (Gate::denies('manage-system')) {
            return redirect()->route('admin.states.index');
        }
        $state->delete();
        return redirect()->route('admin.states.index');
    }
public function destroy ( State $ state ) { if ( Gate :: denies ( 'manage-system' ) ) { return redirect ( ) -> route ( 'admin.states.index' ) ; } $ state -> delete ( ) ; return redirect ( ) -> route ( 'admin.states.index' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .