Laravel Sélectionner la colonne personnalisée
$products = Product::select([
"id",
"name",
DB::raw("'10%' as tax"),
DB::raw("1 as active")
])->get();
Hardik Savani