tuandm / laravue-core

Laravel package to provide core functionalities of Laravue dashboard
https://laravue.dev
MIT License
150 stars 49 forks source link

api routes #2

Closed BechirAhmed closed 5 years ago

BechirAhmed commented 5 years ago

How or Where i can write my own api routes to communicate with my controllers, cuz it works only if i write them in this file vendor\tuandm\laravue-core\src\routes\laravue.php

tuandm commented 5 years ago

@BechirAhmed Sorry for that issue. We are working to release the hot fix which removes default routes on the package. In the meantime you can use that file (direct or fork)to add your code, and wait for the new release to move your custom routes later.

BechirAhmed commented 5 years ago

Okay, thanks

srdjanmarjanovic commented 5 years ago

Any updates here? I was really eager to start using this, but this issue really bugs me ...

ramshid commented 4 years ago

I did following tweak to fix this issue

commented following line from vendor\tuandm\laravue-core\src\routes\laravue.php

Route::group(['namespace' => $namespace, 'middleware' => 'web'], function () { Route::get('/{any}', 'LaravueController@index')->where('any', '.*'); });

and added following to my routes/web.php

Route::group(['middleware' => 'web'], function () { Route::get('/', '\Tuandm\Laravue\Http\Controllers\LaravueController@index'); });

now I can use my own controllers.

Is there any other way to fix this?