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