Support the ongoing development of Laravel.io →
posted 10 years ago
Views

Hello,

I have this link

<li><a href="{{URL::route('abbonementen.create', null) }}"><span class="side_icon ion-plus"></span> Niewe Abbonementen</a></li>

and abbonementen.create looks this way :

public function create()
	{
		return View::make('abbonementen.create'); 
	}

and in views I have a directory abbonementen with a file called create.blade.php

But still if I want to see the form I see this message :

View [abbonementen.create] not found. 

Roelof

Last updated 3 years ago.
0

This sounds like a silly problem I had not too long ago.

I found that I had accidentally named the file incorrectly and used a comma instead of a period like so:

myview,blade.php (note the comma).

Last updated 3 years ago.
0

I checked and it's not the case here:

action@comfortable-lannisport-33-149212:~/workspace/finance/app/views/abbonementen $ ls                                                       
create.blade.php 

Roelof

Last updated 3 years ago.
0

Here is the routes.php file

Route::get('/', array('as' => 'home', 'uses' => 'HomeController@showDashboard' ));

Route::resource ('abbonementen', 'AbbonementenController'); 
Last updated 3 years ago.
0

modify the config/view.php to include your new folder path like so.


'paths' => [
    __DIR__.'/../views', 
    __DIR__.'/../views/abbonementen',
],

Last updated 3 years ago.
0

Hello,

I found it after some talking on IRC. There was a extra space after the abbonementen directory name

Roelof

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

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.