Skip to content
Development and deployment2 min read

What is Laravel?

Short answer

Laravel is an open-source PHP framework that follows the MVC pattern and ships ready-made tools for routing, databases, authentication, queues and scheduled tasks. On a server it needs a recent PHP version, Composer, a database, and the domain pointed at its public folder.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. Laravel’s core pieces
  2. Example: typical deploy commands
  3. Common errors
  4. On ArabyHost

Taylor Otwell released Laravel in 2011, and a new major version arrives roughly every year. It solves the things every project repeats (logins, sending email, file uploads) so you can get straight to your app’s own logic.

Laravel’s core pieces

Piece What it does
Routing Maps URLs to code in routes/web.php and routes/api.php
Eloquent Works with database tables as PHP objects
Blade View templates
Migrations Creates and changes tables in code
Artisan The php artisan command-line tool
Queues and Scheduler Runs jobs in the background and on a timetable

Sensitive settings such as the database password and APP_KEY live in an .env file outside the code (see environment variables).

Example: typical deploy commands

composer install --no-dev --optimize-autoloader
php artisan key:generate      # first deploy only
php artisan migrate --force
php artisan config:cache
php artisan route:cache

Scheduled tasks need a single cron line that runs every minute:

* * * * * cd /home/USER/myapp && php artisan schedule:run >> /dev/null 2>&1

Common errors

  • 500 error after upload: usually permissions on storage and bootstrap/cache: see the error page.
  • No application encryption key: the .env file has no APP_KEY.
  • 419 Page Expired: the form’s session expired, or the @csrf directive is missing.
  • Vite manifest not found: front-end assets weren’t built with npm run build.
  • .env visible to the public: happens when the domain points at the project root instead of public.

On ArabyHost

Laravel runs on PHP 8.1 to 8.3 with a MySQL/MariaDB database. AI/Developer plans give you SSH, Composer and Git, so you can deploy from GitHub and run Artisan commands directly. Redis isn’t offered per account, so use the database or file drivers for cache and queues, and run php artisan queue:work --stop-when-empty from cron. Pointing the domain at public is covered step by step in the Laravel deployment guide.

FAQ

Which PHP version does Laravel need?

Laravel 11 and 12 require PHP 8.2 or newer, while Laravel 10 runs on 8.1. Check your version's requirements in the official Laravel documentation before deploying.

Can Laravel run on shared hosting?

Yes, as long as the right PHP version is available, the domain can point at the public folder, and scheduled tasks can run through cron. SSH and Composer make deploying and updating much easier.

Does Laravel need Redis?

No. Since Laravel 11 the default configuration uses the database for cache, queues and sessions; Redis is an option for high-traffic projects.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.