how can i get value from an objectcollection?

Just check if the entry in the database exists directly using a query.

if (DB::table('people')->where('email', $request->email)->exists()){
    return 'This e-mail is already registered';
}

https://laravel.com/docs/8.x/queries#determining-if-records-exist

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top