You are on page 1of 23

WEB

DEVELOPMENT
WITH LARAVEL
Ricardo Crivelli
Presentation
Overview
Points of Discussion
(maybe not in this order)

About Me
What is Laravel
Installation
Routing
Controllers
Request & Response
Views
Authentication
About Me
Ricardo Crivelli aka Rico Crivelli

BACKGROUND
System Information Bachelor at North Paraná State University
Postgraduate in Informatic in Education at Cândido Mendes University
EXPERTISE
CobiT Foundation Certified
Web Developer
Mobile Developer
OCCUPATION
Developer at Federal Institute of São Paulo
CIO at Capim Design
BUT WHAT IS LARAVEL?
Expressive, beautiful syntax
Value elegance, simplicity, and readability? You’ll fit
right in. Laravel is designed for people just like you.

Love beautiful Tailored for your team.


Whether you're a solo developer or a 20 person team,

code?
Laravel is a breath of fresh air. Keep everyone in sync
using Laravel's database agnostic migrations and
schema builder.

We do too!
Modern toolkit. Pinch of magic.
An amazing ORM, painless routing, powerful queue
library, and simple authentication give you the tools
you need for modern, maintainable PHP.
INSTALLING LARAVEL
Laravel utilizes Composer to manage its depencies. So make sure you
have Composer installed on your machine.

First, download the Laravel installer using Composer:

Once installed, let's create a new project:


THE CONFIGURATION FILES
All the configuration files for Laravel framework are stored in the
config directory. Each options is carefully documented.

There is another configuration file stored in the project root folder, its
called .env. All environment settings such as database connection
information are stored there, and because that you should not
commit the file to your application's source control.
Routing
The most basic Laravel routes accept a URI
Routing: and a Closure, providing a very simple and

The Basic
expressive method of defining routes:

All Laravel routes are defined in your routes


files, which are located in the routes directory
and they are automatically loaded by the
framework.
The router allows you to register routes that
Routing: respond to any HTTP verb:

Available
Router
Methods
Any HTML forms pointing to POST, PUT, or
DELETE routes that are defined in the web
routes file should include a CSRF token field.
Otherwise, the request will be rejected.
BUT, HOW TO
SHOW ALL
ROUTES?
USING THE CONSOLE BABE!
php artisan route:list
CORRESPONDING
MODEL
Each table has your own Model
to interact with that table.

EASY RELATIONSHIP
Create relationships more easily THE ELOQUENT
ORM
than in Tinder or in real life. =)

MIGRATIONS
Develop in teams keeping the
database uniform and up to
date.
Show me the
code!
CRUD OPERATIONS
Resource Controller

RELATIONSHIPS
How they work?

MASS ASSIGNMENT?
Making everything great again!
Migrations
RELATIONSHIPS

HOW DO THEY WORK? WHERE THEY


LIVE?
MAY THE THE
FORCE BE
WITH CONSOLE
DOUBT IS THE PRINCIPLE OF
WISDOM.

ARISTÓTELES
THANK YOU!
I HOPE YOU ENJOYED!

You might also like