Laravel

Laravel TutorialChange default routing behaviour in Laravel 5.2.31 +CustomException class in LaravelDeploy Laravel 5 App on Shared Hosting on Linux ServerLaravel ArtisanLaravel AuthenticationLaravel AuthorizationLaravel Blade TemplatesLaravel CashierLaravel CollectionsLaravel Common Issues & Quick FixesLaravel ConstantsLaravel ControllersLaravel Cron basicsLaravel Cross Domain RequestLaravel Custom Helper functionLaravel DatabaseLaravel Database MigrationsLaravel Database SeedingLaravel Directory StructureLaravel DockerLaravel EloquentLaravel Eloquent : RelationshipLaravel Eloquent: Accessors & MutatorsLaravel Eloquent: ModelLaravel Error HandlingLaravel Events and ListenersLaravel Filesystem / Cloud StorageLaravel Form Request(s)Laravel Getting started with laravel-5.3Laravel HelpersLaravel HTML and Form BuilderLaravel InstallationLaravel Installation GuideLaravel Introduction to laravel-5.2Laravel Introduction to laravel-5.3Laravel lumen frameworkLaravel Macros in Eloquent RelationshipLaravel MailLaravel MiddlewareLaravel ObserverLaravel PackagesLaravel PaginationLaravel Permissions for storageLaravel PoliciesLaravel QueuesLaravel RequestsLaravel Route Model BindingLaravel RoutingLaravel SeedingLaravel ServicesLaravel SocialiteLaravel Task SchedulingLaravel TestingLaravel Token Mismatch Error in AJAXLaravel use fields aliases in EloquentLaravel Useful linksLaravel ValetLaravel ValidationMultiple DB Connections in LaravelNaming Files when uploading with Laravel on WindowsRemove public from URL in laravelSparkpost integration with Laravel 5.4



Laravel Tutorial

From WikiOD

Remarks[edit | edit source]

Laravel StackOverflow Slack Community[edit | edit source]

Coming soon

Featured Tutorial[edit | edit source]

Getting Started With Laravel

Contribution Guidelines[edit | edit source]

Coming soon

Contribution Style Guide[edit | edit source]

Coming soon

About Laravel[edit | edit source]

Created by Taylor Otwell as a free open-source PHP web framework, Laravel is meant to ease and accelerate the development process of web applications with a great taste for simplicity.

It follows the model–view–controller (MVC) architectural pattern as well as the PSR-2 coding standard, and the PSR-4 autoloading standard.

Running a Test Driven Development (TDD) in Laravel is fun and easy to implement.

Hosted on GitHub and available at https://github.com/laravel/laravel, Laravel boasts of a micro-services architecture, making it tremendously extendable and this, with ease, with the use of custom-made and or existing third-party packages.

Main Features[edit | edit source]

MVC

Laravel uses the MVC model, therefore there are three core-parts of the framework which work together: models, views and controllers. Controllers are the main part where most of the work is done. They connect to models to get, create or update data and display the results on views, which contain the actual HTML structure of the application.

Blade Templating Engine

Laravel is shipped with a templating engine known as Blade. Blade is quite easy to use, yet, powerful. One feature the Blade templating engine does not share with other popular ones is her permissiveness; allowing the use of plain PHP code in Blade templating engine files.

It is important to note that Blade templating engine files have .blade appended to file names right before the usual .php which is nothing other than the actual file extension. As such, .blade.php is the resulting file extension for Blade template files. Blade template engine files are stored in the resources/views directory.

Routing & Middleware

You can define the URLs of your application with the help of routes. These routes can contain variable data, connect to controllers or can be wrapped into middlewares. Middelware is a mechanism for filtering HTTP requests. They can be used to interact with requests before they reach the controllers and can thus modify or reject requests.

Artisan

Artisan is the command line tool you can use to control parts of Laravel. There are a lot of commands available to create models, controllers and other resources needed for development. You can also write your own commands to extend the Artisan command line tool.

Eloquent ORM

To connect your models to various types of databases, Laravel offers its own ORM with a large set of functions to work with. The framework also provides migration and seeding and also features rollbacks.

Event Handling

The framework is capable of handling events across the application. You can create event listeners and event handlers that are similar to the ones from NodeJs.

Versions[edit | edit source]

Version Release Date
1.0 2011-06-09
2.0 2011-11-24
3.0 2012-02-22
3.1 2012-03-27
3.2 2012-05-22
4.0 2013-05-28
4.1 2013-12-12
4.2 2014-06-01
5.0 2015-02-04
5.1 (LTS) 2015-06-09
5.2 2015-12-21
5.3 2016-08-24
5.4 2017-01-24

Welcome to Laravel tag documentation![edit | edit source]

Laravel is a well-known PHP Framework. Here, you will learn all-about Laravel. Starting from as-simple-as knowing what Object-Oriented Programming is, to the advanced Laravel package development topic.

This, like every other Stackoverflow documentation tag, is community-driven documentation, so if you already have experiences on Laravel, share your knowledge by add your own topics or examples! Just don't forget to consult our Contribution style guide on this topic remarks to know more about how to contribute and the style guide that we made to make sure we can give the best experience towards people that want to learn more about Laravel.

More than that, we are very glad that you come, hope we can see you often here!

Starter Guide[edit | edit source]

Starter guide is custom navigation that we ordered by ourselves to make topic browsing easier especially for beginner. This navigation is ordered by level of difficulty.

Getting Started[edit | edit source]

Installation

Laravel Views[edit | edit source]

Blade : Introduction

Blade : Variables and Control Structures

Or

Installation from here

  1. Get composer from here and install it
  2. Get Wamp from here, install it and set environment variable of PHP
  3. Get path to www and type command:
composer create-project --prefer-dist laravel/laravel projectname

To install a specific Laravel version, get path to www and type command:

composer create-project --prefer-dist laravel/laravel=DESIRED_VERSION projectname

Or

Via Laravel Installer

First, download the Laravel installer using Composer:

composer global require "laravel/installer"

Make sure to place the $HOME/.composer/vendor/bin directory (or the equivalent directory for your OS) in your $PATH so the laravel executable can be located by your system.

Once installed, the laravel new command will create a fresh Laravel installation in the directory you specify. For instance, laravel new blog will create a directory named blog containing a fresh Laravel installation with all of Laravel's dependencies already installed:

laravel new blog

Credit:Stack_Overflow_Documentation