Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Nasr1's avatar
Level 1

api documentation generator

am new with laravel , i know that there are packages out there that generate the api doc , but i dont know which is better ? and how to use it ? thanks in advance .

0 likes
6 replies
Nasr1's avatar
Level 1

look bro am new to laravel , and i still don know how to use it , i did installed it , but when i run " php artisan api:generate --routePrefix="/api/v1/* " where my routes file is :- Route::group(['prefix'=>'api/v1'],function(){

Route::get('/route/index', 'routeController@index')->name('indexRoute'); Route::get('/route/create', 'routeController@create')->name('createRoute');

});

but in the index.html i got NOTHING plz help me

Nasr1's avatar
Level 1

@tisuchi thanks bro , am using it and worked fine but for gust one controller for many controller it produce an error "[ReflectionException] Method all does not exist" so what to do ?

Nasr1's avatar
Level 1

Ohhh i figure it out , i wasnt using @resource in the controllers comment that made the problem

Please or to participate in this conversation.