How to make CNC pagination in Laravel?

How to make a beautiful pagination in Laravel 5.4,

I create a record using paginate(),
then in view file print page links
{{ news->links() }}
Ranting in the specified route with the following settings
Route::get('/news/{page?}', 'NewsController@index')
->name('news.index')
 ->where('page', '[0-9]+');


But pagination is still printed as
site.loc/news?page=1
And need to site.loc/news/1
June 10th 19 at 16:56
1 answer
June 10th 19 at 16:58
Try this package: LARAVEL-PAGINATEROUTE.

Find more questions by tags Laravel