#### Category : visual-studio-code

I’m wondering if it is possible to automatically set language mode to blade whenever I open the blade.php file in VSCode? Because Laravel Blade Formater works fine with the blade.php file type. I tried adding "files.associations": {"*.blade.php": "blade"} but its not working as what I expected. Language mode: HTML, Formatter: Not working Language mode: Blade, ..

It’s been a few days now, that my changes in the code (controller, event, blade or any other php files) are not reflected at runtime. For my changes to be taken into consideration, I have to close my code editor (VSCode) and open it again and type the command "npm run watch" even for PHP ..

For example I have this input in my blade file <input type="hidden" name="user_id" value="{{ get_user_id($user_id) }}"> Is it possible to go to the definition of get_user_id() with some key combination like Ctrl + click? Thanks! Sourc.. Read more in CMD, trying to do the database seed but it doesn’t work because it says that the class is not found. what should edit? thanks for your time Sourc.. Read more hope you are doing fine. I’m currently facing some problems trying to debug a laravel project (Php 7.3.31). I’m using the Visual Studio Code Extension "Php Debug" from Felix Becker https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug I’m able to connect on Visual Studio Code and stop the code at any specific breakpoint, but when I try to step over it .. Read more I dont know why the error message keep showing in my problem tab This screenshot my vscode that message show after adding method destroy Sourc.. Read more I am creating an app that shows the Tasks and the Status of the Task. I am unable to create the relationship between the Status and Task or rather the Statuses of the Task. This is the TaskController <?php namespace AppHttpControllers; use IlluminateHttpRequest; class TaskController extends Controller { public function index() {$tasks = auth()->user()->statuses()->with(‘tasks’)->get(); ..

I’m trying to debug a browser for ReactJS in a Laravel project in VSCode. Here are my settings in launch.json { "version": "0.2.0", "configurations": [ { "type": "pwa-chrome", "request": "launch", "name": "Client", "url": "http://localhost:8010", "webRoot": "${workspaceFolder}/resources/js" } ] } and webpack.mix.js mix .ts("resources/js/index.tsx", "public/js") .js("resources/js/dateFormatting/date.js", "public/js/date.js") .sass("resources/sass/app.scss", ‘public/css’) .tailwind("./tailwind.config.js") .browserSync({ proxy: "localhost:8000", port: 8010, open: .. Read more I’m trying to run a migration following this tutorial https://www.youtube.com/watch?v=074AQVmvvdg&list=PL4cUxeGkcC9hL6aCFKyagrT1RCfVN4w2Q&index=13 I think the tutorial might be out of date because when I enter php artisan migrate; I get this error: IlluminateDatabaseQueryException could not find driver (SQL: select * from information_schema.tables where table_schema = pizzahouse and table_name = migrations and table_type = ‘BASE TABLE’) at C:UsersjonkeDocumentslaravelpizzahousevendorlaravelframeworksrcIlluminateDatabaseConnection.php:703 .. Read more Hi guys i am having an issue where my calendar’s timeslot is unavailable after 4pm everday.I have set it for the whole day.How can i check this block? Sourc.. Read more Do we have an extension or another way of achieving an automatic semicolon at the end of a line in Laravel controllers? Or achieving a semicolon by formatting without manually doing it? Sourc.. Read more I have a problem. I’m learning laravel 8 and tailwind CSS. and as title vscode tailwind CSS Intellisense not working. My tailwind CSS version is 2.2.15. tailwind.config.js like the photo. enter image description here output no error enter image description here so what can I do about this issue? Sourc.. Read more I’m using laravel sanctum authentication and when I call any method of sanctum package through laravel authentication, vscode can’t find them but when I call them through the User model vscode can find them all. this image Explain everything image anyway in both ways code runs correctly without any problem. Sourc.. Read more Introduction I’m using this Add-on for Visual Studio Code. When creating relations with it. My views seem not working. I get an error in the browser (see below). Laravel Snippets ID: onecentlin.laravel5-snippets Beschreibung: Laravel snippets for Visual Studio Code (Support Laravel 5 and above) Version: 1.13.0 Herausgeber: Winnie Lin Link zum Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=onecentlin.laravel5-snippets .. Read more This is not a question I’m putting this here so it might help someone who has problem like i do. this happens to me for 1 hours ago and i think its my VS Code broken. and the last part i do the windows 10 re-install I’m working with VS Code on windows, with laravel .. Read more I installed Xdebug. Xdebug Launch currently open script Error: Class "IlluminateSupportFacadesRoute" not found Why is there an error? Sourc.. Read more I will give all explanation for problem i have now. OS i have is Kali Linux. Visual Studio code is on last version. When i create Laravel 8 project and start it on localhost / 127.0.0.1 and open Visual Studio Code and open Terminal and type example php artisan down it put my website to .. Read more I have an issue with my localhost =. it not running my code that i made and running a other localhost with "it Works" message. I tried many ways to fix it but I couldn’t. I think there is an issue with my conf here is my apache2 block="<VirtualHost *:$3> ServerAdmin [email protected] ServerName $1 ServerAlias .. Read more I’m using VS Code and I get a lot of errors that do not exist at all and there is no reason to accept them. I have included 2 images that show the problem. Sourc.. Read more im trying to save a profile image on a register blade, the images are going to database with the name but couldn’t be save on my public/imgs repository, so i can’t even show on a view. Can someone help me to resolve this problem? the name of the image on my database is "foto". public .. Read more I can’t access the definition using ctrl+click. Even when I try using click+Go to definition it says no definition found. Here I was trying to go to the main Statefulguard file by pressing F12 use IlluminateContractsAuthStatefulGuard; public function __construct(StatefulGuard$guard) { $this->guard =$guard; } When I try going to the definition Sourc..

I’m trying to debug Vue in a Laravel project using VS Code. Laravel 8.0, Vue 2.6.12 I already followed the guide at Vue.js website, However, I am getting the error message below in Chrome Console and not able to trigger the breakpoint. DevTools failed to load source map … Could you please help me with ..