I did a Laravel course, and I did my application in MVC, however, there are balloons, which I load in JSON, click the "login" button, open the login balloon, there are CRUD functions. can I do the MVC system in this way? The balloons are in the views / balloons / ... folder I call the controller like this:
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, via JSON, then call the controller, then the view that is the balloon ...
Thank you!