I've got the manual in front of me, I've searched Google, and nothing. Why is this:
//update combined results cache
$schedule->call('App\Http\Controllers\CombinedYieldUpdater#index')
->everyFiveMinutes()
->between('02:00', '04:00');
causing this?
[2017-01-09 11:42:02] local.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Illuminate\Console\Scheduling\CallbackEvent::between()
It looks like you don't use Laravel 5.3. Similar problem here where user wanted to use method available in Laravel 5.2. and he was using 5.1.
Are you sure you using 5.3? If not update your framework to 5.3 and it should work.
Related
Our project recently got converted from laravel to lumen and I am in charge of fixing the things that broke. I have little experience in Lumen, so forgive the lack of insight.
A simple pluck method from laravel
$mobile_phones= JobApplication::where('job_circular_id',$id)->pluck('mobile','id')->toArray();
is no longer working in Lumen. It keeps saying error: Call to a member function toArray() on string.
Googling Lumen equivalent for pluck method returns nothing relevant. And as far as I can see in the docs (https://lumen.laravel.com/docs/5.2/upgrade), lumen SHOULD have pluck method. What am I doing wrong?
I have an old website which was developed in Laravel 5.2 and which for various reasons can't be upgraded from that.
I have a vendor package which, in the boot() method of one ServiceProvider, has this line:
$this->loadMigrationsFrom($somewhere);
... but this method did not exist in Laravel 5.2.
What would be the cleanest way to override this errant method-call?
It occurs to me that I might just be able to write a new service-provider class to replace this one, since all it really seems to do is to register one console command. But is there a way to "override" it?
In this case I was able to bypass the problem by creating a new ServiceProvider and using it instead of the vendor's version in config/app.php.
I am trying to use Paginator::make on my array data with Laravel 5.5. I found an answer on another question, but the function is not working.
I cannot find Paginator::make in the documentation either.
I am using laravel 5.1. Some files in service and aliases are showing undefined. I don't know what goes wrong here. It is showing this....
and also in aliases..
I am new in laravel. I don't know what happened there. Any kinds of help will be appreciated.Thanks
Try using this package: Laravel 5 IDE Helper Generator
This package generates a IDE helper to help your IDE. Take a look if this help you.
Regards
I installed Laravel-4 on my MAC, its all good until i try to do something.
I tried to follow the tutorial on website, which is the basic route here http://laravel.com/docs/quick
When i tried to open, its an error with message: Class Route not found on routes.php
I barely use framework PHP, so should i make a class for it or what do they want?
Is there another way to test that i could use the Laravel-4 php , like the hello-world ?