Malik Zubair Mukhtar
Malik Zubair Mukhtar

Reputation: 151

How to run laravel artisan command on server?

How to run laravel artisan command on server? I have to run this this command:

composer require realrashid/sweet-alert

Upvotes: 1

Views: 11563

Answers (1)

user10678889
user10678889

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..

enter image description here

Open it and try for the steps given above.

Thank you!

Upvotes: 6

Related Questions