jeudi 5 mars 2020

variables not passing to view in laravel from controller

Variables not passing to views in laravel project from the controller. getting Undefined variable: title error.

function index()
{

    $data = array(
        'title'=>'Font Awesome & Material Design Icons',
        'description'=>'Create your project with Font Awesome & Material Design Icons',
        'seo_keywords'=>'Create your project with Font Awesome & Material Design Icons',
        'data'=> DB::table('fontawesomeicons')->orderBy('id', 'asc')->paginate(50),
        );   

// $data = DB::table('fontawesomeicons')->orderBy('id', 'asc')->paginate(50);
 return view('pagination', compact('data'));

}


via Chebli Mohamed

1 commentaire:

  1. If you're trying to lose weight then you absolutely have to get on this totally brand new custom keto diet.

    To create this keto diet service, licensed nutritionists, fitness trainers, and chefs joined together to develop keto meal plans that are effective, painless, price-efficient, and satisfying.

    Since their first launch in 2019, thousands of individuals have already completely transformed their figure and well-being with the benefits a professional keto diet can provide.

    Speaking of benefits; clicking this link, you'll discover eight scientifically-tested ones offered by the keto diet.

    RépondreSupprimer