app/Http/Controllers/RentController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Rent  $rent
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Rent $rent)
    {
        $rent->delete();
        return redirect()->route('rent.index')->with('pesan','Data deleted successfuly!');
    }
public function destroy ( Rent $ rent ) { $ rent -> delete ( ) ; return redirect ( ) -> route ( 'rent.index' ) -> with ( 'pesan' , 'Data deleted successfuly!' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .