I am new to Laravel. I have never used artisan commands. Now I'm trying to install a bundle, but it says to run this commands: php artisan bundle:install charisma and `php artisan bundle:publish. I don't know how to run these commands and WHERE to run these commands for installation. Can anyone please tell me step by step how and where these commands work.
You should run those commands at the terminal.
Let's suppose you have Laravel installed on documents/projects/test.
cd documents/projects/test
php artisan bundle:install charisma
Related
I am trying to install this package on my server after installing everything when I try to migrate with php artisan migrate it tells me there is nothing to migrate. Also the migration table is not there. here is what I did:
php composer.phar require igaster/laravel_cities
change in providers app.php
Igaster\LaravelCities\GeoServiceProvider::class,
Ran this script
mkdir storage/geo
cd storage/geo
wget http://download.geonames.org/export/dump/allCountries.zip && unzip allCountries.zip && rm allCountries.zip
wget http://download.geonames.org/export/dump/hierarchy.zip && unzip hierarchy.zip && rm hierarchy.zip
Now when I run php artisan migrate it tells me there is nothing to migrate
I am not sure if this is because I have php composer.phar instead of composer?
Try php artisan config:cache then retype php artisan migrate - Hope this helpfull...
Try running:
php artisan vendor:publish --provider="Igaster\LaravelCities\GeoServiceProvider"
And then run the migration
php artisan migrate
php composer.phar is identical to composer so thats not the issue.
If migration file not showing you likely need to run
php artisan vendor:publish
Copy vendor/igaster/laravel_cities/src/migrations folder contents to database\migrations folder, then run php artisan migrate. Sometimes publishing vendor resources doesn't work for me too and I dive into the source of the package then to make them work.
Recently learning Laravel using netbean IDE, I saw some command like
cygcheck -c cygwin
composer require barryvdh/laravel-ide-helper
php artisan ide-helper:generate
but i don know how I can run them, tried to run in CMD, but the file generate in different location and php php artisan ide-helper:generate is not supported.
I have shell script for that is executed before start of the application.
This is the shell script
#!/bin/sh
/usr/local/bin/composer install
/usr/local/bin/php artisan optimize
/usr/local/bin/php artisan key:generate
when i try to execute this script i get this error
Running composer as root/super user is highly discouraged as packages, plugins and scripts cannot always be trusted
[Symfony\Component\Console\Exception\CommandNotFoundException]
" is not defined.
Did you mean this?
install
The composer executable is installed and works when called from the command line
The trick is putting it like this
#!/bin/sh
`/usr/local/bin/composer install`
`/usr/local/bin/php artisan optimize`
`/usr/local/bin/php artisan key:generate`
I have created some Command files into my Laravel Application. Laravel version is 5.2. I set command like: get:email in the Command file. Also call the Command file into Kernel.php. After that I can see the artisan command list by typing the command php artisan list. as like as below:
//output
get:email
And I changed the command title get:email to get-bq:email. When I run the command php artisan get-bq:email -- its working nicely. Also I can see the list by typing the command php artisan list::
//output
get-bq:email
Issue / Problem: Both commands are working. But I won't to work with both of them. I have done the following things:
modified command file as well as command
run composer dump-autoload -o
run composer update
remove vendor and storage folder then run composer update again.
Still the old command is working into my system.
What I want: How May I remove my old commands from my Laravel(5.2) application?
Run these commands:
php artisan cache:clear
php artisan config:clear
These commands will clear app cache and config cache and recreate it.
I've had the same problem recently.
Repoeatedly tried
php artisan cache:clear
php artisan config:clear
and the cached Kernal command wouldn't clear.
In desperation i killed the queue worker terminal and restarted the queue with the command
php artisan queue:work
The issue stopped.
I am very new to Laravel and I have been assigned to work on a laravel app.
I installed composer and when i do composer install or composer update i see this in the terminal:
> php artisan optimize
Generating optimized class loader
> php artisan test:setup
sudo apt-get install -y xvfb firefox chromium-browser chromium-chromedriver
Password:
I don't understand why it is running that command on my mac? How can i disable that?
You are running an artisan command test:setup. As far as i know that is not a standard laravel artisan command.
Someone in that project probably made a custom command in the app/commands folder that installs those packages for you so you are able to run certain custom tests.
If you want to remove it:
Look inside the app/commands or search your project for a file like testCommand.php and disable the code.
You can read more about artisan commands in the docs.