#15 CRUD - Delete | Laravel 5.6

Delete Data

$var = \App\ModelName::find( $id );
$var->delete();
retunr redirect( url('/') )->with( 'sessionname', 'sessionvalue' )

Add your review



Leave a Reply