app/Http/Controllers/API/LoopbackAPIController.php
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy($id)
{
$post = Loopback::find($id);
if (is_null($post)) {
return $this->sendError('Post not found.');
}
Loopback::where('id', $post->id)
->update([
'is_delete'=>'0'
]);
return $this->sendResponse($id, 'Tag deleted successfully.');
}
public function destroy ( $ id ) { $ post = Loopback :: find ( $ id ) ; if ( is_null ( $ post ) ) { return $ this -> sendError ( 'Post not found.' ) ; } Loopback :: where ( 'id' , $ post -> id ) -> update ( [ 'is_delete' => '0' ] ) ; return $ this -> sendResponse ( $ id , 'Tag deleted successfully.' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .