Category : macos

I’m using PhpStorm on Mac. I’m trying to debug a Laravel application inside the Sail container on the remote Ubuntu server. Error that I can see from Xdebug inside Sail container is: [17] Log opened at 2021-09-26 21:24:59.590599 [17] [Step Debug] INFO: Checking remote connect back address. [17] [Step Debug] INFO: Checking header ‘HTTP_X_FORWARDED_FOR’. [17] ..

Read more

Lately, I kept getting this error php artisan migrate > IlluminateDatabaseQueryException : could not find driver (SQL: select * from information_schema.tables where table_schema = public and table_name = migrations and table_type = ‘BASE TABLE’) database.php ‘pgsql’ => [ ‘driver’ => ‘pgsql’, ‘host’ => env(‘DB_LOCAL_HOST’, ‘127.0.0.1’), ‘port’ => env(‘DB_LOCAL_PORT’, ‘5432’), ‘database’ => env(‘DB_LOCAL_DATABASE’, ”), ‘username’ => ..

Read more

I have a Laravel 8 project that I want to send emails with. I develop it on macOS and I want to test it, but it does not work, but won’t give any errors. (I replaced sensitive data with ********) .env MAIL_MAILER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=465 MAIL_USERNAME=********@gmail.com MAIL_PASSWORD=******** MAIL_ENCRYPTION=ssl MAIL_FROM_ADDRESS=********@gmail.com MAIL_FROM_NAME="${APP_NAME}" Note: I validated those settings, I ..

Read more

I am unable to choose a time slot in Mac. In windows, it is working fine. I have tried changing the codes in my visual studio. $.ajax({ type: ‘POST’, url: ‘/calendar/read_schedule/’+doctor_id, data: { date: info.event.start.toLocaleDateString(), }, success: function(response){ console.log(response); if(response.success){ $(‘#add-event select[name="time-slot"]’).html(”); let option = document.createElement("option"); option.value = 0; option.innerHTML = "Pick a time slot"; ..

Read more

I have a project laravel + vuejs in macos. I got this error, run the command ‘npm run dev’ *[email protected] blogger % npm run dev *> [webpack-cli] Error: spawn Unknown system error -86 at ChildProcess.spawn (node:internal/child_process:415:11) at spawn (node:child_process:698:9) at Object.execFile (node:child_process:325:17) at Object.module.exports.fileCommandJson (/Users/panda/Sites/blogger/node_modules/node-notifier/lib/utils.js:88:13) at NotificationCenter.notifyRaw (/Users/panda/Sites/blogger/node_modules/node-notifier/notifiers/notificationcenter.js:81:11) at WebpackNotifierPlugin.compilationDone (/Users/panda/Sites/blogger/node_modules/webpack-notifier/index.js:129:14) at _next1 (eval at ..

Read more

The problem happens whenever I call the Laravel installer: laravel new app. When I call composer create-project –prefer-dist laravel/laravel app everything works fine. I’m using zsh and my export paths looks as follows: export PATH=$HOME/bin:/usr/local/bin:$PATH export PATH=/opt/homebrew/bin:$PATH export ZSH="/Users/konstantinkrumov/.oh-my-zsh" export PATH=~/.composer/vendor/bin:$PATH I also have an alias for composer alias composer="php /usr/local/bin/composer/composer.phar When I run which ..

Read more

I am attempting to setup a basic project in Laravel using Laravel Sail. According to the official Laravel documentation the following commands will create a new Laravel application called "example-app" and start Laravel Sail. curl -s "https://laravel.build/example-app" | bash cd example-app ./vendor/bin/sail up However, after running these commands I see the following error message: ERROR: ..

Read more

Hi I have my newly installed valet that gives me this error Fatal error: require(): Failed opening required ‘/Users/user/Desktop/myApp/public/index.php’ (include_path=’.:/Users/user/pear/share/pear’) in /Users/user/.composer/vendor/laravel/valet/server.php on line 221 any idea why im getting this error? this error is from ~/valet/server.php on last line of code require $frontControllerPath; this $frontControllerPath contains this "/Users/user/Desktop/myApp/public/index.php". Appreciate your help. Thank you Source: ..

Read more

I’m getting this error on my newly installed Laravel valet after running myApp.test Warning: require(/Users/username/Desktop/www/myApp/public/index.php): failed to open stream: Operation not permitted in /Users/username/.composer/vendor/laravel/valet/server.php on line 219 Fatal error: require(): Failed opening required ‘/Users/username/Desktop/www/myApp/public/index.php’ (include_path=’.:/usr/local/Cellar/[email protected]/7.3.28_1/share/[email protected]/pear’) in /Users/username/.composer/vendor/laravel/valet/server.php on line 219 Also, I can ping myApp.test PING myapp.test (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: ..

Read more

I get this error message on clone (I have windows, my colleague is working on mac machine): error: invalid path ‘public/C:UsersMy-PCDocumentsProjectsSamplestoragelogs/laravel.log’ fatal: unable to checkout working tree warning: Clone succeeded, but checkout failed. You can inspect what was checked out with ‘git status’ and retry with ‘git restore –source=HEAD :/’ and when I try the ..

Read more

Laravel 8 To be exact: "laravel/framework": "^8.12", I have no idea why most of my routes working locally on Mac OS X, but giving me 404 on production Ubuntu 20. Local .test Prod .app These are my routes declation <?php use IlluminateSupportFacadesRoute; /* |————————————————————————– | Web Routes |————————————————————————– | | Here is where you can ..

Read more

I’m using MAC OS and I’m new to laravel .. I’m working on laravel using xampp and when i run the command php artisan migrate I get this error SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = web and table_name = migrations and table_type = ‘BASE TABLE’) my .env DB_CONNECTION=mysql DB_HOST=127.0.0.1 ..

Read more

I have created a validation system to check if the uploaded files are secured and virus-free, I’m using ClamAV for that purpose. At first I was testing locally on my MACOS using XAMPP but I kept getting the below error Sunspikes ClamavValidator ClamavValidatorException ClamAV scanner client failed with error "Socket operation failed: Connection refused (SOCKET_ECONNREFUSED)" ..

Read more

New back-end dev here. Just had a question about why the default laravel welcome page is displaying whenever I visit my custom web app url. I am practicing setting up new applications (obviously I need to) with homestead. I downloaded some site files and made the necessary edits to my .env, hosts file, and .yaml ..

Read more