Back

www.linkedin.com/posts/muhammadabdullahmirza_laravel-php-activity-7309274977415892992-EL7B?utm_source=share&utm_medium=member_android&rcm=ACoAADWJrtMBT8Jwf9L4vFoBr979qRuhyrnrpW4


๐—ง๐—ถ๐—ฝ ๐—ผ๐—ณ ๐—ง๐—ต๐—ฒ ๐——๐—ฎ๐˜† ๐—ณ๐—ผ๐—ฟ ๐—Ÿ๐—ฎ๐—ฟ๐—ฎ๐˜ƒ๐—ฒ๐—น๐—ถ๐—ฎ๐—ป๐˜€โค๏ธ

Dear! Laraveliansโค๏ธ,
Today, I want to show you the power of Laravel's built-in relationship attribute selection syntax ๐Ÿš€๐Ÿ’ช๐Ÿš€

๐Ÿ. ๐–๐ก๐š๐ญ ๐ข๐ฌ ๐‡๐š๐ฉ๐ฉ๐ž๐ง๐ข๐ง๐ ?
๐—ถ๐—บ๐—ฎ๐—ด๐—ฒ๐˜€:๐—ถ๐—ฑ,๐—ฝ๐—ฟ๐—ผ๐—ฑ๐˜‚๐—ฐ๐˜_๐—ถ๐—ฑ,๐—ฝ๐—ฟ๐—ผ๐—ฑ๐˜‚๐—ฐ๐˜_๐—ถ๐—บ๐—ฎ๐—ด๐—ฒ: Fetches only the id, product_id, and product_image columns from the images relationship.

๐—ฐ๐—ฎ๐˜๐—ฒ๐—ด๐—ผ๐—ฟ๐˜†:๐—ถ๐—ฑ,๐—ฐ๐—ฎ๐˜๐—ฒ๐—ด๐—ผ๐—ฟ๐˜†_๐—ป๐—ฎ๐—บ๐—ฒ,๐—ฐ๐—ฎ๐˜๐—ฒ๐—ด๐—ผ๐—ฟ๐˜†_๐—ถ๐—บ๐—ฎ๐—ด๐—ฒ: Fetches only the id, category_name, and category_image columns from the category relationship.

โ€ข โ€ข

65

โ€ข

0 / 1000