Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Daniel1836's avatar

How can I use the terminal/tinker using Laravel on Hostgator?

I'm building a project using Laravel on HostGator. I'm trying to create a factory to create some dummy data. Is there a way to use the terminal to enter tinker/php artisan commands on HostGator?

I've been creating the files (models, controllers) manually in my cpanel up to this point.

Thanks

0 likes
3 replies
Daniel1836's avatar

Thanks for the reply.

I'm able to connect the ssh to my shared hosting site.

When I run the php artisan command though I get this message.

(Could not open input file: artisan)

Sergiu17's avatar

Because you are not in the root of your project

cd /proect-name

ls #make sure you see your laravel project structure

php artisan tinker

Please or to participate in this conversation.