Support the ongoing development of Laravel.io →
posted 9 years ago
Blade

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?

Last updated 3 years ago.
0

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 .

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Simpanoz simpanoz Joined 14 May 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.