2021年5月6日星期四

How to architect a project which has more number of dynamic pages in laravel

I have a project which has large number of dynamic pages. Approximately 30+ pages. The content of each pages are different. what I did is created 30 tables and 30 routes as well. And in admin side, there are 30+ module to edit the contents. Is it the right way to do this?

// Route definition...  Route::get('/page1', [Page1Controller::class, 'show']);  Route::get('/page2', [Page2Controller::class, 'show']);  Route::get('/page3', [Page3Controller::class, 'show']);    // Controller method definition...  public function index()  {      return view('page1');  }  
https://stackoverflow.com/questions/67428800/how-to-architect-a-project-which-has-more-number-of-dynamic-pages-in-laravel May 07, 2021 at 11:55AM

没有评论:

发表评论