DEV Community

ramil-gutana
ramil-gutana

Posted on

Laravel 7 auth and profile registration

1

I have two tables: profile and users. I tried to code it on RegisterController using the Laravel UI package. However, it didn't work properly. What is the best approach to implement it?

public function register(Request $request)
{
    $year = date_diff(date_create($request->birthday)
        date_create(date('Y-m-d')));
    $profile_data = [
        'last_name' => $request->last_name,
        'first_name' => $request->first_name,

Top comments (0)