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
->select('products.*','t2.title')
->leftJoin('category as t2', 't2.id', '=', 'products.subcategory_id')
->where('products.status',1);