Laravel-5.7 not create folder resources\views\layouts - laravel-5.7

I'm using PHP 7.2.12 and Composer 1.7.3.
When I execute the command composer create-project --prefer-dist laravel/laravel my_project the project is created, but the folder resources\views\layouts is not created and neither the files that are inside of it. Any idea what could be the problem?

I found a answer. To create the folder resources\views\layouts I needed execute
php artisan make:auth
this command create the structure initial the layout to login of the laravel

Laravel-5.7 will not create folder
resources\views\layouts by default, you have to create it manually.
Please check this:
http://prntscr.com/lusq6a
Thank you

Related

Can't create meteor project

I had a problem where I couldn't create a meteor project using the following command:
cd c:/projects
meteor create foo
I got this error:
You can't create a Meteor project inside another Meteor project.
I found some answers for this problem saying there could me a .meteor folder in the projects folder, but this was not the case.
Turned out there was a .meteor folder in my c:/. After removing this folder the command create worked again.

Change Meteor Up start.sh template

Due to install Graphicsmagick at Meteor Up Docker, I need to edit the start.sh (link this: Meteor Up Docker and Graphicsmagick).
I done that at the server and works, but every time I run mupx deploy, my /opt/<appName>/config/start.sh file change to original. I need to change the start.sh template, but I don't know how to do that, how can I change it?
You have to change the file from your local meteor-up template. not sure about mupx, it might be in your global .npm installation folder.
I'm using kadira meteor-up so mine is located at the git cloned folder.

Symfony don't generate new bundle

I try to generate bundle in Symfony 2, using command line tool.
After running bundle:generate command, there is no generated bundle in /src folder.
Watch this short video to see a problem: https://www.youtube.com/watch?v=9zKgaqWz8rs
There is no any errors in console.
i think you're in the wrong directory.
you look at Computer/F:/symfony/src and the composer told you it generated a bundle in F:/xampp/htdocs/symfony/src.
so take a look in F:/xampp/htdocs/symfony/src, it might be there.

Updating the composer.phar on Symfony2

I have an already started Symfony2 project. I need to install a new bundle, and as I saw i need to add a new line to my composer.json and then execute the update command.
The thing is, my composer.phar file and the .json are on different folders.
/httpdocs/composer.json
/bin/composer.phar
So after I add this line to the .json file:
"doctrine/mongodb-odm-bundle": "3.0.*#dev"
If then i try /bin/php composer.phar update doctrine/mongodb-odm-bundle i got an error saying that the composer.json is not there and is correct of course. So my doubt is WHY thoose files are in different folders? does the previous developer make a mistake? Should I move the files to a same folder? To bin or httpdocs?
It doesn't matter where the composer.phar lives. The relevant part, that your current working directory is in the symfony project (where the composer.json lives). Then simple execute composer (if the execute bit is set, no call to php is required).
/bin/composer.phar update doctrine/mongodb-odm-bundle
You can have a global composer.phar and use only this one. This is how you would normally have it on a development machine where you have multiple composer projects.
Some people tend to put a composer.phar into their projects so they can deploy it together with their application.
Solution to composer complaining about the missing composer.json:
you have to change your working directory to the path where the composer.json you want to use is located. ( every composer project has it's own composer.json )
This means cd into your project directory ...
cd /path/to/yourproject
... Before executing
/bin/composer.phar update ...
Alternative:
You can specify a working directory for composer with the --working-dir option.
This way you point composer to your project from any current working directory ( even if you project's path differs from where your cwd is ) . example usage:
composer --working-dir=/path/to/yourproject <command>
Tip #1
rename /bin/composer.phar to /bin/composer
mv /bin/composer.phar /bin/composer
chmod +x /bin/composer
Then you can simply ( assuming /bin is in your PATH ) ...
composer <command>
Tip #2
You can check where you currently are with pwd ( *p*rint *w*orking *d*irectory )
pwd

Symfony2: How to update a bundle whose source files have been modified?

I am using the KNP Pagination Bundle. I customized the twig file in the bundle source. Then I found a better way of doing it without touching the bundle's files.
Unfortunately, now everytime that I do
bin/vendors install
I get the following error:-
"KNP Paginator Bundle" has local modifications. Please revert or commit/push before running this command again.
My .gitignore file has ignored /vendors
And my deps file has the bundle included too.
Is there a way to uninstall a bundle? So that I can reinstall it?
Or what is the best way to solve my problem?
./bin/vendors doesn't care about content of .gitignore. You can fork desired bundle, do your changes there and change deps file to point to your fork instead.
If you still want to use original bundle and just reinstall it, you can either run ./bin/vendors install --reinstall or just delete the bundle folder from vendor directory and run ./bin/vendors install again.
How about using git --reset? The vendors are fetched using git clone after all.
Can you explain what "git reset" does in plain english?

Resources