Laravel Introduction
Laravel is a PHP framework for building web apps. A web app is a site that responds to visitors and stores data.
The version check
Run this command in your app folder to see the Laravel version.
php artisan --versionThe app environment
This command shows which environment the app runs in.
php artisan envExample
cd my-app
php artisan --version
php artisan envKey points
- Laravel: a PHP framework for building web apps.
- Framework: ready-made code that gives an app its shape.
- Artisan: the command-line tool that ships with Laravel.
- Laravel handles common jobs like web addresses and pages.
- PHP Beginner teaches the PHP language in depth.
- Laravel is free to use.
In this example, three commands run in order. The first changes into the app folder. The second prints the Laravel version. The third shows the app environment, which is local.
Try it Yourself
Edit the code, then press Run.
Running is simulated
Exercise
What is Laravel?