Category : visual-studio-code

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 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(); ..

Read more

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

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

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..

Read more

I’m having a strange issue. I created a Laravel project as stated on the Laravel Documentation, after this I have created a folder named ‘js’ inside the public folder of this project. /projects/project_folder/public/js I was unable to see this (js) folder and search (CTRL+P) for files inside this folder. This is just happening with vscode, ..

Read more

I am using VS Code for Web development (Laravel framework with MySQL database). I am currently using phpMyAdmin for MySQL database administration/management. But I see that there is some database administration/management VS Code extensions. So I planned to use one of the best extensions without using phpMyAdmin. So Can someone let me know which is ..

Read more

I really like Laravel Facade when transforming dynamic class to static. For instance, I can easily add the keyword Facades and call it a static class. use FacadesAppServicesMyService; public function something() { $something = MyService::getSomething(); } Normally we can track getSomething() function using Ctrl+click in VS code editor. But with Facades, Ctrl+click doesn’t work. Any ..

Read more