Wednesday, March 15, 2017

How to get blade.php.file from function in controller?

I call ‘check’ function in controller from route ,

   public function check($id)
{
   return View::make('running');     
}

it works , open the running.blade.php file . but when i write –

public function font()
{ 
echo “hello”;
return View::make(‘running’);
}   

public function check($id)
{
$this->font();     
}

running.blade.php doesnot appear , only a blank page with “hello” show in browser; I think in both cases blade file show in browser.



via Alimur Razi Rana

Advertisement