app/Http/Controllers/TableController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\TableModel  $tableModel
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(TableModel $tableModel)
    {
        TableModel::destroy($tableModel->id);
        return redirect('/table')->with('status_hapus', 'data berhasil dihapus');
    }
public function destroy ( TableModel $ tableModel ) { TableModel :: destroy ( $ tableModel -> id ) ; return redirect ( '/table' ) -> with ( 'status_hapus' , 'data berhasil dihapus' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .