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
storageandbootstrap/cache: see the error page. No application encryption key: the.envfile has noAPP_KEY.419 Page Expired: the form’s session expired, or the@csrfdirective is missing.Vite manifest not found: front-end assets weren’t built withnpm run build..envvisible to the public: happens when the domain points at the project root instead ofpublic.
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.