laravel-admin-extensions / laravel-admin-extensions/scheduling

Scheduling not work at admin panel

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
92
Forks
33
PR merge metrics
No merged PRs in 30d

Description

```php
command('inspire')->everyTenMinutes();
// $schedule->runTask(1);

$schedule->command('route:list')->everyTenMinutes();
}
}
```
This code not work, and task is not shown at schedule view. At Documentation noone said nothing about imports, and what to do with this code. Maybe some bootstrap.php code missing, but I have not info what to do.

Command php artisan schedule:run shows schedulings, but not at admin panel:
![image](https://github.com/user-attachments/assets/f82616f0-3f2e-4c93-a9f4-f776dc479704)

Do not shows schedulings from project/app/Console/Kernel.php, but from project/routes/console.php:

```php
comment(Inspiring::quote());
})->purpose('Display an inspiring quote')->hourly();

Schedule::command('inspire')->everyFiveSeconds();
```

Those schedulings is shown by php artisan schedule:run or list. But those commads are not visible at admin panel, like at documentation of this extension.

Saddly documentation not show what to import to class Kernel. Maybe wrong location? Or maybe docker makes, that I have to put this class at another localization?

Ps. I have added to routes/console.php class Kernel like above, but this is not work too.

Ps It is OpenAdmin, but this is only a fork from your extension. Works the same, but not works at all.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing app/Console/Kernel.php with routes/console.php and run php artisan schedule:run or schedule:list to confirm which schedules Laravel discovers. Then trace how the admin schedule view gathers tasks and whether it includes schedules registered in Kernel.php. Done means the documented Kernel.php scheduling example appears in the admin panel as well as the routes/console.php schedules.

Written by the indexing model from the issue text.

Assessment

Tech stack
laravel, php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.