I’m new to Laravel. Can anyone please let me know how to use "AS" operator for table ‘products’ in below SQL query?
$obj = new Product();
$main_data = $obj
->leftJoin('category as t2', 't2.id', '=', 'products.subcategory_id')
Our dedicated development team is here for you!
We can help you find answers to your question for as low as 5$.