mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-17 15:52:15 +00:00
Delete client
This commit is contained in:
@@ -66,4 +66,17 @@ class ClientController extends Controller
|
||||
new OasisClientResource($client), 201
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Client $client
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function destroy(Client $client)
|
||||
{
|
||||
if ($client->user_id === Auth::id()) {
|
||||
$client->delete();
|
||||
|
||||
return response('Done', 204);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user