Md_Amirul
2 months ago

Object of class Illuminate\Auth\AuthManager could not be converted to string

Posted 2 months ago by Md_Amirul

https://laracasts.com/series/laravel-from-scratch-2018/episodes/26 I getting this error

public function store() { $attributes = request()->validate([

        'title' => ['required', 'min:3'],
        'description' => ['required', 'min:3']
        
    ]);

    Project::create($attributes + ['owner_id' => auth()->id()]);
    return redirect('/projects');
}

}

Please sign in or create an account to participate in this conversation.