Reputation: 151
How to run laravel artisan command on server? I have to run this this command:
composer require realrashid/sweet-alert
Upvotes: 1
Views: 11563
Reputation:
If you have access for ssh, login through it.
Check if you have composer by typing composer
in terminal else install it.
to Install composer
use composer install
command in terminal.
go to the root folder in which laravel is installed using cd command.
In the root folder, run the command php artisan
in terminal.
It should work fine now.
What if you have Shared hosting?
Just look for terminal
in cpanel. See image for ref..
Open it and try for the steps given above.
Thank you!
Upvotes: 6