Access the authenticated user via the Auth facade
https://laravel.com/docs/5.4/authentication
<?php
1) import the Auth Facade:
use Illuminate\Support\Facades\Auth;
2) use
// Get the currently authenticated user...
$user = Auth::user();
// Get the currently authenticated user's ID...
$id = Auth::id();