Increase Your Laravel Speed with This Game-Changing Subquery AddSelect Technique!
@salehalnaggar7926 Жыл бұрын
It's really a great lesson, from the bottom of my heart thank you ❤️
@rudiedirkx Жыл бұрын
What if you also want to know the created_at of that latest post per user? Can you just do Post::select('title', 'created_at') ?
@renends7615 Жыл бұрын
Great video, it will help me a lot! Thank you very much!
@satishksharma Жыл бұрын
I have some queries regarding database relationship in laravel. I want to create a school management system in which suppose I have Models with table. Model names are Student, StudentParent, StudentProfile, Session, Standard, Subject. StudentParent has many Student and Student belongs to StudentParent. Student has many StudentProfile, StudentProfile belongs to Student, Session, Standard. I wish to select only name, gender, dob from students table, father_name and mother_name from student_parents table, session_id and session_name from sessions table, standard_id and standard_name from standard_tables. So how can we retrieve StudentProfile data with Student data, StudentParent data, Session and Standard in laravel with optimization.