I've two database which is 1 for system two for data and I've a select option and I want to get the session selected using Session::put() laravel but Iam getting error,
this the code
$tahun= Session::put('tahun', DB::connection('pgsql2')->table('laporan')->get('tahun'));
$bulan=Session::put('bulan', DB::connection('pgsql2')->table('laporan')->get('bulan'));;
$tahun2=Session::put('tahun2', DB::connection('pgsql2')->table('laporan')->get('tahun2'));;
$bulan2=Session::put('bulan2', DB::connection('pgsql2')->table('laporan')->get('bulan2'));;
$audit1 = Session::put('audit1', DB::connection('pgsql2')->table('laporan')->get('audit1'));;
$audit2 =Session::put('audit2', DB::connection('pgsql2')->table('laporan')->get('audit2'));;
I've read that people use Session with 2 param but still I'am getting error. how do I fix this ?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2wgGfJN
via IFTTT
Aucun commentaire:
Enregistrer un commentaire