This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 226809 - Add support for Laravel Framework
Summary: Add support for Laravel Framework
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.3
Hardware: All All
: P1 normal with 3 votes (vote)
Assignee: Tomas Mysik
Depends on:
Reported: 2013-02-27 21:58 UTC by dc2005
Modified: 2017-05-10 09:23 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description dc2005 2013-02-27 21:58:13 UTC
I know Laravel( is the new kid on the block, but their gaining popularity and it would be nice if netbeans would easily work with it as easy as it is to work with Zend or even Symfony.

This is the only PHP Framework I couldn't really find a plugin for, but sure the demand is there.
Comment 1 Tomas Mysik 2013-12-04 13:24:06 UTC
Since there is a plugin provided by our community [1], I will close this issue.

Comment 2 saidbakr 2017-03-18 15:41:13 UTC
The regarded plugin does no longer updated and it seems like for Laravel 4 and currently there is Laravel 5. I suggest to re-open this enhancement request again.

At least, Netbeans should support `*.blade.php` and deal them as a mix between HTML and PHP.
Comment 3 Caffeine 2017-05-10 09:15:58 UTC
Started using the Laravel 5 framework recently which comes with a lot of IDE helper support. This helper tool generates stub files to provide autocomplete for most of the framework, however they have recently moved some of the autocomplete to docblocks on the model files:

For example our Product model has an auto generated docblock:

 * App\Models\Product
 * @mixin \Eloquent

The @mixin support doesn't appear to be working and inside our controllers. For example Product::where()->get() has no auto completion for the where() and get() methods which would have been available through the Eloquent @mixin type hint.

For reference this gist:

Still gives auto complete for netbeans correctly, however the artisan command to generate this file gives the new non-working file.

Would be great to see some better laravel 5 and blade view file support, possibly even artisan command support like the composer right click contextual support.
Comment 4 Caffeine 2017-05-10 09:23:54 UTC
Also a small work around for mapping .blade.php files to the mime type text/x-twig

Solution copied here:

Go to Tools > Options > Miscellaneous > Files
Click New
Enter blade as the new extension (you can use anything here, but this seems the most natural)
Click OK
In Associate File Type (MIME) select TWIG (text/x-twig)
Click OK of the whole Options window
Close Netbeans
Open the Netbeans configuration folder - on Windows it's %AppData%\Netbeans\<version>\
Go to subfolder config\Services\MIMEResolver
Open user-defined-mime-resolver.xml
Find the <ext name="blade"/> entry (or whatever you entered above)
Change the blade to blade.php
Save and close the file

This works around the file extension not allowing sub extensions.