I am new to laravel. Recently I cloned sample project from github. When I migrate the code. I got Exception message: Undefined variable: allowAddLeadInvestorExecutive
Controller:
public function index()
{
$customViewData = [
'allowAddleadInvestorExecutive' => 1,
];
$viewData = array_merge($this->layoutData, $customViewData);
return view('controller.index', $viewData);
}
View: index.blade.php
extends($layout)
@section('content')
@if ($allowAddLeadInvestorExecutive == 1)
<!-- Html code -->
@
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1N9jxsb
via IFTTT
Aucun commentaire:
Enregistrer un commentaire