Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the main concepts in the laravel framework?

I'm starting to use Laravel 5.1, I got knowledge in php, js, angular, express, node, apache, mysql, sqlserver, and some other things.

In Angular I like that everything is built as singletons, so that the main concepts are: modules, controllers, services, factories, directives, routes, views, scopes, etc...

I'd like to know what concepts do I need to understand when building an app under laravel?

like image 668
user5429739 Avatar asked Oct 10 '15 01:10

user5429739


People also ask

What are the features of Laravel framework?

Laravel happens to be amongst the most well-known, proficient, and widely used open-source framework at present. It consists of various features like MVC architecture support, artisan tool, template engine, database migration system, top security, and so forth.

What is the main use of Laravel?

Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, and caching. Laravel aims to make the development process a pleasing one for the developer without sacrificing application functionality.

What framework does Laravel use?

Livewire. Laravel Livewire is a framework for building Laravel powered frontends that feel dynamic, modern, and alive just like frontends built with modern JavaScript frameworks like Vue and React.


2 Answers

Basically all you need to know is very well documented at the official documentation, Taylor Otwell made a huge effort doing the documentation to make the framwork more comprenhensible.

The basic concepts are:

  • Routing
  • Controllers
  • Views
  • Blade templating
  • Requests and Responses
  • Models & Migrations

After that keep an eye to in the Middleware concept, also there's a plenty of built-in services as: Auth, Pagination, Encryption, etc... check them out.

Something you'll love is Eloquent ORM, it simplifies the interaction with the database.

Laravel community has their own site and that is laracasts you could get help there too.

like image 171
Jonathan Solorzano Avatar answered Sep 19 '22 13:09

Jonathan Solorzano


One of the most important features of Laravel is the Service Container (you'll hear about it also as the IoC Container) and the way it's used to register Services, provide Dependency Injection, and be a Registry for your application.

Middleware are one of my favorite feature of laravel: they are like filters executing before and after the requests, in which you can 'prepare' some data to be handled in the request or 'fix up' something after the request has been processed

Another peculiar feature are the Facades: (non to be confused with the homonym design pattern ) you'll see them everywhere, and you'll learn how they provide easy access to the service container keeping your code succint,readable and testable in the same time

like image 27
Moppo Avatar answered Sep 20 '22 13:09

Moppo