I\'m trying to do simple insertion in database and im getting the following error
call_user_func_array() expects parameter 1 to be a valid callback, n
DB::table('users')->insert( array( 'id' => '1', 'name' => 'Dayle' ) );
or
$values = array('id' => 1,'name' => 'Dayle'); DB::table('users')->insert($values);
But why are you inserting an ID? Should this not be an auto incremented value?