Laravel Beginner
Laravel Beginner
About me
• Ida Bagus Gede Purwania, S.TI.
• Programming since 9 years
• Graduated Information Technology at Udayana University
• Currently working as Co-Founder & Web Back End Developer at
PT. Digital Artisans Indonesia, so I can be up to date with the latest
technologies
https://digitalartisans.id/
Gus Purwania
https://github.com/guspurwania
We will learn today …
• Framework Trends
• What is Laravel? Features & Requirements
• Install Laravel 5 with Composer
• Files structure
• What is artisan and how does it save us time?
• Routing and route types
What is Laravel?
• Laravel is MVC PHP framework created by Taylor Otwell in 2011
• Free open-source license with many contributors worldwide
• One of the best frameworks together with Symfony, CodeIgniter, Yii
• Has powerful features, saving us time
• Uses Symfony packages
• Lets see some statistics
Google Trends (2012 – 2017)
PHP Framework Popularity at Work –
SitePoint 2015
Features
• Eloquent ORM (object-relational mapping) – implements ActiveRecord
• Query builder – helps you to build secured SQL queries
• Restful controllers – provides a way for separating the different HTTP requests (GET, POST,
DELETE, etc.)
• Blade template engine – combines templates with a data model to produce views
• Migrations – version control system for database, update your database easier
• Database seeding – provides a way to populate database tables with test data used for testing
• Pagination – easy to use advanced pagination functionalities
• Forms security – provides CSRF token middleware, protecting all the forms
Must have packages
• Laravel debugbar - https://github.com/barryvdh/laravel-debugbar
Great for debugging on local environment. Shows all the views, requests, exceptions loaded for the
current page.