What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-03-17 01:05:01
laravel token logout
public function logout (Request $request) { $accessToken = auth()->user()->token(); $token= $request->user()->tokens->find($accessToken); $token->revoke(); return response(['message' => 'You have been successfully logged out.'], 200); } Add solution -
PHP 2022-01-30 14:16:41
laravel where and blade
// NOTE: all project with open and processed that you have not submitted an offer yet. // NOTE 1 (Controller): all projects with open and processed $projects = Project::whereIn('status_id', [2,3])->get(); // NOTE 2 (Blade): @if (count($project->pr... Add solution