User Tools

Site Tools


laravel:part_1

Laravel: Step 1

First, let's make sure we have a code editor installed, also known as an IDE.

You can get started with any editor. Popular choices are Visual Studio Code or PHPStorm.

The installation section of Laravel's documentation gives you some instructions on how to get started: https://laravel.com/docs/9.x/installation

Once we have the prerequisites installed, you can create a new Laravel install in an empty directory:

mkdir ~/dev/; cd ~/dev/
composer create-project laravel/laravel example-app

That will create a new directory called 'example-app' and install the basic Laravel framework. You can test things are working with:

cd example-app
php artisan

That should give you a list of available commands. If you spot any errors - make sure you have PHP installed properly and your version is correct.

Now we can launch the test webserver and see the Laravel welcome page.

php artisan serve

You should be able to visit http://127.0.0.1:8000 and be presented with the Laravel logo and welcome screen.

laravel/part_1.txt · Last modified: 2022/12/12 12:27 by admin