Is the laravel model written as hasMany ()-> join ()?

as the title
if so, how should I write it?

May.02,2022

No hasMany () is used to define an one-to-many relationship. Later, the associated relationship can be queried and the associated data can be called directly later. Join () is the

that directly does the associated query.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38992-2c13d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38992-2c13d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?