Laravel is a powerful MVC PHP framework, designed for developers who need a simple and elegant toolkit to create full-featured web applications. Laravel was created by Taylor Otwell. This is a brief tutorial that explains the basics of the Laravel framework.
Steps for download and Install Laravel
Step 1 − Visit the following URL and download composer to install it on your system.
Step 2 − Open Command Prompt and browser to the web server root directory or localhost
For example, You have installed WAMP server. Open C:/wamp/www
Step 3 − In www directory create the new project of laravel in the directory. We have to type command which is given below and create that project.
Command : composer create-project –prefer-dist laravel/laravel mylaravelTestProject
Step 3 − Test your Installation.
History Of Laravel
Taylor Otwell created Laravel as an attempt to provide a more advanced alternative to the CodeIgniter framework, which did not provide certain features such as built-in support for user authentication and authorization. Laravel’s first beta release was made available on June 9, 2011, followed by the Laravel 1 release later in the same month. Laravel 1 included built-in support for authentication, localization, models, views, sessions, routing and other mechanisms, but lacked support for controllers that prevented it from being a true MVC framework.
Laravel 2 was released in September 2011, bringing various improvements from the author and community. Major new features included the support for controllers, which made Laravel 2 a fully MVC-compliant framework, built-in support for the inversion of control (IoC) principle, and a templating system called Blade. As a downside, support for third-party packages was removed in Laravel 2.
Laravel 3 was released in February 2012 with a set of new features including the command-line interface (CLI) named Artisan, built-in support for more database management systems, database migrations as a form of version control for database layouts, support for handling events, and a packaging system called Bundles. An increase of Laravel’s user base and popularity lined up with the release of Laravel 3.
Laravel 4, codenamed Illuminate, was released in May 2013. It was made as a complete rewrite of the Laravel framework, migrating its layout into a set of separate packages distributed through Composer, which serves as an application-level package manager. Such a layout improved the extensibility of Laravel 4, which was paired with its official regular release schedule spanning six months between minor point releases. Other new features in the Laravel 4 release include database seeding for the initial population of databases, support for message queues, built-in support for sending different types of email, and support for delayed deletion of database records called soft deletion.
Laravel 5 was released in February 2015 as a result of internal changes that ended up in renumbering the then-future Laravel 4.3 release. New features in the Laravel 5 release include support for scheduling periodically executed tasks through a package called Scheduler, an abstraction layer called Flysystem that allows remote storage to be used in the same way as local file systems, improved handling of package assets through Elixir, and simplified externally handled authentication through the optional Socialite package. Laravel 5 also introduced a new internal directory tree structure for developed applications.
In March 2015, a SitePoint survey listed Laravel as the most popular PHP framework.
Laravel 5.1, released in June 2015, is the first release of Laravel to receive long-term support (LTS), with planned availability of bug fixes for two years and security patches for three years. LTS releases of Laravel are planned to be released every two years.
Laravel 5.3, released on August 23, 2016. The new features in 5.3 are focused on improving developer speed by adding additional out of the box improvements for common tasks.
Laravel 5.4, released on January 24, 2017. This release had many new features, like Laravel Dusk, Laravel Mix, Blade Components and Slots, Markdown Emails, Automatic Facades, Route Improvements, Higher Order Messaging for Collections, and many others. Laravel 5.5, released on August 30, 2017.
Laravel 5.6, released on February 7, 2018.
Laravel Application Structure
Description Of Laravel Directory
/app: It contains all application core data and controller files.
/bootstrap: It has all Style files, which bootstrap wants for auto-loading.
/config: It has configuration files. It also defines the path of the folder.
/public_html: It has all the database files. It is also used for SQLite DB.
/routes: It contains all files and assign that after initializing the front page.
/storage: It contains blade template and all private files.
/tests: It has an automated test file after the compile the website.
/vendor: It contains predefined plugins file such as MailChimp, Image Compressor etc.
/.env: It contains string files such as database name, password and unique Identification Number etc.
/.env.example: It contains string files such as database name, password and unique Identification Number etc.
/.gitattributes: It contains all Github configuration files.
/.gitignore: It contains all GitHub configuration files.
/.artisan: It contains all command lines for installing plugins
Example of command: / artisan plugin name
/.composer.json: It contains all JSON files.
/.composer.lock: It contains the file for the composer. The user can never update and edit
/package-lock.json: It is similar to the composer.json but It also has all package details
/package.json: It is similar to the composer.json but It also has all package details.
/phpunit.xml: It contains the file for php unit.
/readyme.md: It contains general information about the framework.
/server.php: It works on the internal web server.