I am newbie to laravel and using V-5 of it. Following is action of controller:
public function create()
{
if (view()->exists('category.insert'))
{
echo 'Category Insert template exists';
}
else{
echo 'Category Insert template not available';
}
return View::make('category.insert');
//return 'Controller: Category, Action: create';
}
Following is code 'insert.blade.php' template
<h1>Insert blade template</h1>
When I run http://localhost/category/insert link, I get
following and nothing else :
Category Insert template exists
I also tried to call default created templates like welcome, home. But go same results (no display of template).
Note: Earlier, home, default templates were working.
I think, no blade template is working anymore.
Can someone guide me how to rectify this problem?
Is the view-file in resources/views/category/insert.blade.php? Or is the file named category.insert.blade.php?
If you have a dot in your filename, this dot will be replaced with an / or .
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community