Answers for "get a specific column from with realation laravel"

PHP
0

how to get a particular column in laravel 8

$result = DB::Table('table_name')->select('column1','column2')->where('id',1)->get();
Posted by: Guest on July-07-2021
1

get specific columns using with() function in laravel eloquent

Post::with('user:id,username')->get();
Posted by: Guest on September-15-2020

Code answers related to "get a specific column from with realation laravel"

Browse Popular Code Answers by Language