Laravel Wybierz niestandardową kolumnę
$products = Product::select([
"id",
"name",
DB::raw("'10%' as tax"),
DB::raw("1 as active")
])->get();
Hardik Savani