I lose my bootstrap styles when passing variable (get) to route->Controller->View in Laravel 5.4. here is my code-
header.blade.php->
<a href="">
web.php->
Route::get('/news/{id}', 'NewsController@view_news');
NewsController.php->
public function view_news($id) {
$category_info = Category::where('publication_status', 1)->get();
$category_product = Product::where('id', $id)->get();
$data = array();
$data['header_content'] = view('Front_End.includes.header', ['all_published_category' => $category_info]);
$data['home_slider']= view('Front_End.slider.home_slider');
$data['main_content'] = view('Front_End.category.category_content', ['category_product' => $category_product]);
$data['footer_content']= view('Front_End.includes.footer');
return view('Front_End.master')->with($data);
}
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2lflxqI
via IFTTT
Aucun commentaire:
Enregistrer un commentaire