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);


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2mGG6PS
via IFTTT

Aucun commentaire:

Enregistrer un commentaire