1
I took a course of Laravel, and I made my application in MVC, however, there are some balloons, which I press in JSON, click on the button "login", open the balloon login, in it there are functions of CRUD... How can I make the MVC system that way? Balloons are in the views/Balloons/ folder... I call the controller that way:
Route::get('/', 'SiteController@index');
and the controller calls it:
$links = DB::table('links')
->join('categories', 'categories.CatId', '=', 'links.LinkCat')
->select('links.*', 'categories.CatColor')
->get();
return view('site.index', compact('links'));
in case, I need to call the route, by JSON, then call the controller, then the view that is the balloon...
Thank you!