laravel relationship with for single data

103

laravel relationship with for single data -

User::with('user_profile')->get();

laravel relationship with for single data -

User::with('user_profile')->where('id',$user_id)->first();

Comments

Submit
0 Comments