Level 88
Well, it basically means you can define your own routes in routes/api.php. In that route, you can connect your own controller which can be used inside your tool.
Here is an example
// routes/api.php
Route::get('download-excel', [ExcelController::class, 'download'])->middleware('nova');
// app/Http/Controllers/Api/ExcelController.php
class ExcelController extends Controller
{
public function download(Request $request)
{
// Do whatever you want here
}
}
In your tool, you can then use the URL you created in your API routes
1 like