0% found this document useful (0 votes)
4 views

Laravel Text

Laravel is a web application framework designed for ease of use and powerful features, suitable for both beginners and experienced developers. It offers various methods to create projects, including using Composer and Laravel Sail for Docker integration, simplifying the setup process. After creating a project, developers can easily start a local server and access their application through a web browser.

Uploaded by

amine idrissi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Laravel Text

Laravel is a web application framework designed for ease of use and powerful features, suitable for both beginners and experienced developers. It offers various methods to create projects, including using Composer and Laravel Sail for Docker integration, simplifying the setup process. After creating a project, developers can easily start a local server and access their application through a web browser.

Uploaded by

amine idrissi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Laravel is a web application framework with expressive, elegant syntax.

A
web framework provides a structure and starting point for creating your
application, allowing you to focus on creating something amazing while we
sweat the details.

Laravel strives to provide an amazing developer experience while providing


powerful features such as thorough dependency injection, an expressive
database abstraction layer, queues and scheduled jobs, unit and integration
testing, and more.

Whether you are new to PHP web frameworks or have years of experience,
Laravel is a framework that can grow with you. We'll help you take your first
steps as a web developer or give you a boost as you take your expertise to
the next level. We can't wait to see what you build.

Laravel project via the Composer create-project command:

composer create-project laravel/laravel example-app

Or, you may create new Laravel projects by globally installing the Laravel
installer via Composer:

composer global require laravel/installer

laravel new example-app

After the project has been created, start Laravel's local development server
using the Laravel's Artisan CLI serve command:

cd example-app

php artisan serve

Once you have started the Artisan development server, your application will
be accessible in your web browser at http://localhost:8000. Next, you're
ready to start taking your next steps into the Laravel ecosystem. Of course,
you may also want to configure a database.
Laravel & Docker
We want it to be as easy as possible to get started with Laravel regardless of
your preferred operating system. So, there are a variety of options for
developing and running a Laravel project on your local machine. While you
may wish to explore these options at a later time, Laravel provides Sail, a
built-in solution for running your Laravel project using Docker.

Docker is a tool for running applications and services in small, light-weight


"containers" which do not interfere with your local machine's installed
software or configuration. This means you don't have to worry about
configuring or setting up complicated development tools such as web servers
and databases on your local machine. To get started, you only need to
install Docker Desktop.

Laravel Sail is a light-weight command-line interface for interacting with


Laravel's default Docker configuration. Sail provides a great starting point for
building a Laravel application using PHP, MySQL, and Redis without requiring
prior Docker experience.

Getting Started On macOS

If you're developing on a Mac and Docker Desktop is already installed, you


can use a simple terminal command to create a new Laravel project. For
example, to create a new Laravel application in a directory named "example-
app", you may run the following command in your terminal:

curl -s "https://laravel.build/example-app" | bash

Of course, you can change "example-app" in this URL to anything you like -
just make sure the application name only contains alpha-numeric characters,
dashes, and underscores. The Laravel application's directory will be created
within the directory you execute the command from.

Sail installation may take several minutes while Sail's application containers
are built on your local machine.

After the project has been created, you can navigate to the application
directory and start Laravel Sail. Laravel Sail provides a simple command-line
interface for interacting with Laravel's default Docker configuration:

cd example-app

./vendor/bin/sail up

Once the application's Docker containers have been started, you can access
the application in your web browser at: http://localhost.

You might also like