public function profile()
{
return $this->hasOne('App\Models\Profile','user_id', 'id');
}
if (!Auth::user()->profile) {
return redirect()->route('profile');
}
return $next($request);
Route::group('middleware' => ['verified','hasProfile'], function () {
});