I tried to execute
composer create-project laravel/laravel
It is saying that it is creating the project at "C:\Users\FXFX\" but there is no visible project at "C:\Users\FXFX\", I wonder where is my projects gone?
This happens because of the "Comodo Internet security sandbox". It always sand box the composer and that resulted to creating it's files inside the sandbox in my case "C:\VTRoot\HarddiskVolume3\Users\FXFX".
Solution :
I exclude composer directory from the sandbox.
Related
I understand, that in order to contribute to the Shopware platform / core, I have to setup Shopware 6 using the development template.
I followed the steps at
https://github.com/shopware/platform#quickstart--installation
But only until
./psh.phar docker:start
I was thinking about installing via bin/console system:setup and bin/console system:install but it fails with
PHP Fatal error: Uncaught Symfony\Component\Dotenv\Exception\PathException:
Unable to read the "/home/projects/shopware-dev-bd/bin/../.env" environment file. in
/home/projects/shopware-dev-bd/vendor/symfony/dotenv/Dotenv.php:567
Is there an easy way to create the .env? Do I have to copy it manually?
It is recommended now to use the platform repository directly for setting up development installations.
Just clone directly from shopware/platform
composer install
bin/console system:setup to create the .env file
composer run setup
optionally bin/console framework:demodata if you need demo data
Addition to the accepted answer:
While in the development template there was psr.phar to manage things like building the admin theme, and in production template there is bin/build-administration.sh none of those are there in the method described by #dneustadt.
Instead this is managed by composer scripts which are defined in the composer.json
For example admin JS is build using
composer run build:js:admin
I've cloned a Laravel project from Github, then I've run composer install for getting vendor folder. This folder has appeared but I also get weird red lines under each class that show Undefined Type errors. I also deleted the composer.lock and run composer update, but the errors are still there!
Is there any other thing that I should do?
The project was running perfectly, So I found out it was because of my IDE.
The VS Code wanted to validate code using php, and it is not finding php installed.
It's solved by setting php.validate.executablePath in Vs Code setting.
For more information: "Cannot validate the php file. The php program was not found"
I tried to create laravel project in netbeansIDE 8.2. but i am getting error.I create laravel project using composer
composer create-project laravel/laravel TestLaravelProject --prefer-dist
After create laravel project i tried to open vie a netbeansIDE. after i open that project i got error (unresolved project problem fixed by "Resolved Project Problem")
i tried this way also but it getting error.
Netbeans 8.0 Composer with Laravel 5
how can i create laravel project in netbeansIDE? can you help me?
Thank you.
view this repository:
https://gist.github.com/barryvdh/5227822
Put within your app folder.
Here you can access to entire repo: https://github.com/barryvdh/laravel-ide-helper
Hope it helps you.
I got error message when install fuelphp
No composer autoloader found. Please run composer to install the FuelPHP framework dependencies first!
Also i my composer is updated.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
I am using PHP7 with a Vagrant environment.
Any idea about this error ?
It is not able to find installation of fuelphp. Most common issue is that index.php("public" or "public_html" folder) does not have the fuelphp's app, core and packages path set properly.
change DIR.'../ to DIR.'/../../(goes back one folder level)
There should be three of them.
Error:
Class 'App\Package\PackageServiceProvider' not found
After moving my laravel directories to my server. The app is under psr-0.
The same files are found and working locally without any errors.
I tried to update composer with and without dump but nothing changes.
Why does that happen?
By default, the vendor directory is not checked into your git repository. So, just run composer install on your server and it should take care of the rest.