samedi 28 septembre 2019

how to add a new column with laravel 5 not in list

i have query with mySQL like this select cust_name, 'c' from customer...

how to code in laravel? I have try like this...but error

    $customer = DB::table('customer')
        ->select('cust_name','c' as kode);


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire