Using Live Edit with Laravel Blade templates?
How can I use Live Edit with Laravel Blade templates?
When I start the JavaScript debug session PHPStorm 8.0.1 just opens my blade template file in the browser, which of course doesn't work since it must be executed as PHP.
Please sign in to leave a comment.
Specify the url of your php page as an url in javascript debug run configuration - templates will be processed by PHP, and you will be able to live edit them
I added the URL like-so:
http://prntscr.com/4vylzr
However, it still doesn't allow live edit when I enter debug for that page. The page loads up just fine now, but editing the associated `items.blade.php` file does not result in automatic reloads for that URL.
What might I be doing wrong?
Please make sure that 'Update' in Settings/Debugger/Live Edit is set to 'Auto in (ms)' and 'restart if hotswap fails' is enabled - does it help?
Unfortunately it still does not update. I don't think PHPStorm can tell that `/www/test.dev/laravel/app/views/items/index.blade.php` is one of the template the files that composes `http://test.dev/items`
Is there a way to add associations to the URL so it knows which files are involved in that URL that it should watch for edits?
Up...
(Idem: When using file.blade.php in a view, live edit doesn't automatically update the browser's website page... Work perfectly in all other cases (And Live template for blade is OK too :-) V used: PhpS 8.02)
Hello, all,
If that can help (Either users as me, either programmers of PhpS...), I observe that do and believe at the Ide that myFile.blade.php is an html file
(In settings - Editor - File types , add template *.blade.php for 'HTML Files' instead of 'Blade files') do:
- Live Edit (With properly browser's extension) run as Well as any HTML File or PHP File :)
- But completion and coloration don't continue to run :O
Waiting a next upgrade will correctt that...
PhpS is really a fantastic Ide, even if we always can do bettter :-)
up