app/Http/Controllers/Admin/PackagesController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Package  $package
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Package $package)
    {
        if (Gate::denies('manage-students')) return redirect()->route('admin.packages.index');
        $package->delete();
        session()->flash('success', "The Package has been deleted successfully");
        return redirect()->route('admin.packages.index');
    }
public function destroy ( Package $ package ) { if ( Gate :: denies ( 'manage-students' ) ) return redirect ( ) -> route ( 'admin.packages.index' ) ; $ package -> delete ( ) ; session ( ) -> flash ( 'success' , " The Package has been deleted successfully " ) ; return redirect ( ) -> route ( 'admin.packages.index' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .