Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@foremtehan
Last active November 26, 2022 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foremtehan/84d88c03544feea099c583dd71acb394 to your computer and use it in GitHub Desktop.
Save foremtehan/84d88c03544feea099c583dd71acb394 to your computer and use it in GitHub Desktop.
octane issue
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Laravel\Octane\Facades\Octane;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Octane::tick('simple-ticker', fn () => logger('Ticking...'))
->seconds(300)
->immediate();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment