laravel column user_id code example
Example 1: get id user login laravel
use Auth;
$user_id = Auth::user()->id;
Example 2: laravel create get id
$id = $this->create($data)->id;
use Auth;
$user_id = Auth::user()->id;
$id = $this->create($data)->id;