Laravel forum? PHPLaravelDBWrapper update needed

Hi,
Laravel is growing in popularity as a modern framework, so it would be good if it could be featured as prominently on the site as other frameworks.
Also, the PHPLaravelDBWrapper needs a bit of updating as Laravel has changed for 5.2/5.3 see https://laravel.com/docs/5.3/upgrade
Particularly relevant for v5.3 is: “Database/Collections: The fluent query builder now returns Illuminate\Support\Collection instances instead of plain arrays. This brings consistency to the result types returned by the fluent query builder and Eloquent.If you do not want to migrate your query builder results to Collection instances, you may chain the all method onto your calls to the query builder’s get or pluck methods. This will return a plain PHP array of the results, allowing you to maintain backwards compatibility:”
The wrapper select method can be tweaked a little to cover all 5.* versions by checking the return is an array, and if not then converting it
if (! is_array($res) ) { $res = $res->toArray();

However, using the query builder seems more problematic, as for multiple results it returns a Collection of Eloquent models.
Finally, an example of how to use scheduler with recurring events would be most helpful, as I cannot get this to work!
Anyone?
Thanks

Hi,

Thanks for the suggested fix, I have added it to the main codebase

github.com/DHTMLX/connector-php … rapper.php

As for the sample of Scheduler with Laravel, I will ask one of my colleagues to create a sample. As far as I can see there is no any specific here. Just be sure that model contains all necessary fields ( rec_type, event_length, etc. )

@Stanislav
Hi, Finally have recurring events working :smiley:
Agreed, must be very specific about the fields in the model, and seems need to allow NULL in the db schema.
I also added all table fields to the model $fillable property.
I think that’s what did it!

Your scheduler seems a very good component, so thanks very much for your work on it.
I think it competes with the popular FullCalendar (which does NOT handle recurring events,AFAIK)
Now I will have to try it in a ‘real’ scenario with a more realistic Laravel project and incl. twBootstrap, jQuery etc!
Regards from UK