Created
April 6, 2019 17:50
-
-
Save WyattCast44/3a04865f28f841dd1353d5ebb3641316 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers\API; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\Controller; | |
class UsersController extends Controller | |
{ | |
public function __construct() | |
{ | |
$this->middleware('auth:api'); | |
} | |
/** | |
* Return the API Authenticated User | |
*/ | |
public function show(Request $request) | |
{ | |
return $request->user(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment