syntax error, unexpected '=>' (T_DOUBLE_ARROW) while using \Cart::session(auth()->user()->id)->update($id,[( 'quantity' => [ 'relative'=>false, 'value'=>request('quantity') ] code example
Example: authentication in laravel tutorial
laravelAuth
laravelAuth