I am trying to do a simple insert into a database and im getting the following error
call_user_func_array () expects parameter 1 to be a valid callback, no given array or string
The insert code is as follows
DB::insert('insert into users (id, name) values (?, ?)', array(1, 'Dayle'));
This is the main request for laravel, but it will not work why?
source
share