Hello, We are developing a package and was wondering how we can add tests for both Laravel and Lumen? So all our tests should run on both Laravel and Lumen, we do not want to clone our tests for Lumen and Laravel as they should work for both.
I have a queue which uses SerializesModels and inside my handle method I am trying to create another model, but nothing happends.
Model::create([ 'someData' => 123 ]);
This is what I am doing in my
handle() function, but nothing happens.
When I run this somewhere else, it works.
Hello, I have a model where I wan't to get a parameter from it with a variables variable like this.
$entry = AgreementEntry::find(1); $var = 'id'; echo $entry->id; //works echo $entry->$$var; //doesn't work
Hello, Fairly new to Laravel, so would like some input if this is "The Laraval way" to do it or not.
I have some data which I need to save and fetch from an database, here I ofc. use a model. But this data has to be saved in a remote system as well, the remote system is using an API for saving the data.
How would I approach this? Would I override create and so on, and make these functions save the data to the remote system as well, or is there a different/better approach?
Thanks for an solution. Was looking for an easy solution, without having to run a command each time.
I will try looking into the PhpFPM and Brew file.
Hello, I just got started on Valet and I wanted to setup a custom driver where it uses PHP5.6 instead of PHP7.0. I looked through the docs, but couldn't find anything about shifting PHP version, is this possible to do as a custom driver? And is it even possible at all to shift the PHP version of Valet?