SlideShare a Scribd company logo
3
Most read
5
Most read
11
Most read
Toufiq MahmudTushar
Laravel Project Demonstration
Required Software
 .Net Framework - https://www.microsoft.com/en-us/download/details.aspx?id=52685
 Wamp/Xampp Server
 Composer - https://getcomposer.org/download/
 Php Editor
Installation
 Install .net framework, wamp, composer in a sequence order.
 Open cmd and type - composer
 Go to www/htdocs directory
 Open cmd and type - composer create-project laravel/laravel
myproject --prefer-dist
Note: laravel = package name and myproject = project name. this
command will create a laravel project on htdocs/www
directory.
 Open cmd and type - php artisan serve
Note: Start apache web server. Go to, http://localhost:8000
Project Structure
Project Structure
 app −This directory contains the core code of the application.
 bootstrap −This directory contains the application bootstrapping script.
 config −This directory contains configuration files of application.
 database −This folder contains your database migration and seeds.
 public −This is the application’s document root. It starts the Laravel
application. It also contains the assets of the application like JavaScript, CSS,
Images, etc.
 resources −This directory contains raw assets such as the LESS & Sass files,
localization and language files, andTemplates that are rendered as HTML.
 storage −This directory containsApp storage, like file uploads etc.
Framework storage (cache), and application-generated logs.
 test −This directory contains various test cases.
 vendor −This directory contains composer dependencies.
Routing
 For routing go to routes->web.php and configure request mapping.
 For view file creation, go to resources->views->test.blade.php
 Note: any change in view file not need to restart server but if any changes in
config/controller it may requires to restart the server.
 Sample Routing –
Route::get('user/register','UserController@preRegister');
Route::post('user/register',array('uses'=>'UserController@postRegister'));
DB Configuration
 After installing Laravel, the first thing need to do is to set the write permission
for the directory storage and bootstrap/cache.
chmod 775 /storage
chmod 775 /bootstrap/cache
 Create a database at phpmyadmin for your project.
 Open .env file from root directory and set DB properties.
 Go to config->database.php and set mysql DB properties.
 To create controller, open cmd and type - php artisan make:controller
UserController
Form Helper configuration
 Open cmd and type - composer require laravelcollective/html
 Then type - composer update
 Next, add your new provider to the providers array of config/app.php:
 'providers'=>[CollectiveHtmlHtmlServiceProvider::class,
],
 Finally, add two class aliases to the aliases array of config/app.php:
 'aliases'=>['Form'=>CollectiveHtmlFormFacade::class,
'Html'=>CollectiveHtmlHtmlFacade::class,
],
Eloquent ORM
 To generate database table from command line, go to database->migration
directory and then create class for database table with DML property.
 Table name should be like “users” if Model name “User”
 When classes are ready as database table, open cmd and type- php artisan
migrate
 Model Create command - php artisan make:model User
 Sample User Model Code –
protected $table = 'users';
protected $fillable = ['name','email','password'];
REST API
 To create Rest Controller, open cmd and type - php artisan make:controller --
resource RestUserController
 Add following line to routes->web.php
Sample routing - Route::resource('restUser','RestUserController');
References
 https://laravel.com/docs/5.4
 https://www.tutorialspoint.com/laravel/index.htm
 https://laracasts.com/series/laravel-5-fundamentals
 http://clickcoder.com/laravel-insert-update-delete-with-eloquent-orm/
 https://code.tutsplus.com/tutorials/using-illuminate-database-with-eloquent-
in-your-php-app-without-laravel--cms-27247
Source Code
 https://github.com/toufiqksl/LaravelCRUD
End

More Related Content

PPTX
Laravel ppt
PPTX
Laravel Tutorial PPT
PDF
Laravel Introduction
PPTX
laravel.pptx
PPTX
Pumping lemma Theory Of Automata
PDF
Web Development with Laravel 5
PPTX
Blockchain Technology ppt project.pptx
PPTX
Laravel overview
Laravel ppt
Laravel Tutorial PPT
Laravel Introduction
laravel.pptx
Pumping lemma Theory Of Automata
Web Development with Laravel 5
Blockchain Technology ppt project.pptx
Laravel overview

What's hot (20)

PPTX
Laravel introduction
PPTX
Lecture 2_ Intro to laravel.pptx
PPTX
What-is-Laravel-23-August-2017.pptx
PDF
Express node js
PPTX
Introduction to laravel framework
PPTX
Laravel
PDF
Laravel - The PHP Framework for Web Artisans
PPTX
Spring boot
PPTX
Laravel development (Laravel History, Environment Setup & Laravel Installatio...
PPTX
Introduction à Laravel
PPTX
Laravel
PDF
ReactJS presentation
PPTX
Express JS
PPTX
Spring Web MVC
PDF
React JS - Introduction
PPTX
React JS - A quick introduction tutorial
PPTX
Spring Boot and REST API
PDF
Spring boot introduction
PDF
Introduction to Spring Boot!
PDF
Nestjs MasterClass Slides
Laravel introduction
Lecture 2_ Intro to laravel.pptx
What-is-Laravel-23-August-2017.pptx
Express node js
Introduction to laravel framework
Laravel
Laravel - The PHP Framework for Web Artisans
Spring boot
Laravel development (Laravel History, Environment Setup & Laravel Installatio...
Introduction à Laravel
Laravel
ReactJS presentation
Express JS
Spring Web MVC
React JS - Introduction
React JS - A quick introduction tutorial
Spring Boot and REST API
Spring boot introduction
Introduction to Spring Boot!
Nestjs MasterClass Slides
Ad

Similar to Laravel presentation (20)

PDF
Apache - Quick reference guide
PPT
Laravel & Composer presentation - extended
PPT
Laravel Starter Kit | Laravel Admin Template-ChandraAdmin
PPTX
RoR guide_p1
PDF
Laravel intake 37 all days
PPT
Apache
PPT
Laravel & Composer presentation - WebHostFace
DOCX
Lampstack (1)
PPTX
Laravel 5
PPT
Red5workshop 090619073420-phpapp02
PDF
Wamp & LAMP - Installation and Configuration
ODP
Laravel 5.3 - Web Development Php framework
PDF
How to Create and Load Model in Laravel
DOC
Unit5 servlets
PPTX
Laravel - Website Development in Php Framework.
PPTX
Building drupal web farms with IIS - part 1
PDF
Getting to know Laravel 5
PDF
Web services with laravel
PDF
Adventures in Laravel 5 SunshinePHP 2016 Tutorial
Apache - Quick reference guide
Laravel & Composer presentation - extended
Laravel Starter Kit | Laravel Admin Template-ChandraAdmin
RoR guide_p1
Laravel intake 37 all days
Apache
Laravel & Composer presentation - WebHostFace
Lampstack (1)
Laravel 5
Red5workshop 090619073420-phpapp02
Wamp & LAMP - Installation and Configuration
Laravel 5.3 - Web Development Php framework
How to Create and Load Model in Laravel
Unit5 servlets
Laravel - Website Development in Php Framework.
Building drupal web farms with IIS - part 1
Getting to know Laravel 5
Web services with laravel
Adventures in Laravel 5 SunshinePHP 2016 Tutorial
Ad

Recently uploaded (20)

PDF
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
PDF
SAP855240_ALP - Defining the Global Template PUBLIC.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Cloud computing and distributed systems.
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
cuic standard and advanced reporting.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
PDF
Smarter Business Operations Powered by IoT Remote Monitoring
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
PDF
DevOps & Developer Experience Summer BBQ
PDF
Event Presentation Google Cloud Next Extended 2025
PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
PPTX
CroxyProxy Instagram Access id login.pptx
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
SAP855240_ALP - Defining the Global Template PUBLIC.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
NewMind AI Weekly Chronicles - August'25 Week I
Cloud computing and distributed systems.
Review of recent advances in non-invasive hemoglobin estimation
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
cuic standard and advanced reporting.pdf
Electronic commerce courselecture one. Pdf
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
Smarter Business Operations Powered by IoT Remote Monitoring
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Dropbox Q2 2025 Financial Results & Investor Presentation
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
DevOps & Developer Experience Summer BBQ
Event Presentation Google Cloud Next Extended 2025
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
CroxyProxy Instagram Access id login.pptx

Laravel presentation

  • 2. Required Software  .Net Framework - https://www.microsoft.com/en-us/download/details.aspx?id=52685  Wamp/Xampp Server  Composer - https://getcomposer.org/download/  Php Editor
  • 3. Installation  Install .net framework, wamp, composer in a sequence order.  Open cmd and type - composer  Go to www/htdocs directory  Open cmd and type - composer create-project laravel/laravel myproject --prefer-dist Note: laravel = package name and myproject = project name. this command will create a laravel project on htdocs/www directory.  Open cmd and type - php artisan serve Note: Start apache web server. Go to, http://localhost:8000
  • 5. Project Structure  app −This directory contains the core code of the application.  bootstrap −This directory contains the application bootstrapping script.  config −This directory contains configuration files of application.  database −This folder contains your database migration and seeds.  public −This is the application’s document root. It starts the Laravel application. It also contains the assets of the application like JavaScript, CSS, Images, etc.  resources −This directory contains raw assets such as the LESS & Sass files, localization and language files, andTemplates that are rendered as HTML.  storage −This directory containsApp storage, like file uploads etc. Framework storage (cache), and application-generated logs.  test −This directory contains various test cases.  vendor −This directory contains composer dependencies.
  • 6. Routing  For routing go to routes->web.php and configure request mapping.  For view file creation, go to resources->views->test.blade.php  Note: any change in view file not need to restart server but if any changes in config/controller it may requires to restart the server.  Sample Routing – Route::get('user/register','UserController@preRegister'); Route::post('user/register',array('uses'=>'UserController@postRegister'));
  • 7. DB Configuration  After installing Laravel, the first thing need to do is to set the write permission for the directory storage and bootstrap/cache. chmod 775 /storage chmod 775 /bootstrap/cache  Create a database at phpmyadmin for your project.  Open .env file from root directory and set DB properties.  Go to config->database.php and set mysql DB properties.  To create controller, open cmd and type - php artisan make:controller UserController
  • 8. Form Helper configuration  Open cmd and type - composer require laravelcollective/html  Then type - composer update  Next, add your new provider to the providers array of config/app.php:  'providers'=>[CollectiveHtmlHtmlServiceProvider::class, ],  Finally, add two class aliases to the aliases array of config/app.php:  'aliases'=>['Form'=>CollectiveHtmlFormFacade::class, 'Html'=>CollectiveHtmlHtmlFacade::class, ],
  • 9. Eloquent ORM  To generate database table from command line, go to database->migration directory and then create class for database table with DML property.  Table name should be like “users” if Model name “User”  When classes are ready as database table, open cmd and type- php artisan migrate  Model Create command - php artisan make:model User  Sample User Model Code – protected $table = 'users'; protected $fillable = ['name','email','password'];
  • 10. REST API  To create Rest Controller, open cmd and type - php artisan make:controller -- resource RestUserController  Add following line to routes->web.php Sample routing - Route::resource('restUser','RestUserController');
  • 11. References  https://laravel.com/docs/5.4  https://www.tutorialspoint.com/laravel/index.htm  https://laracasts.com/series/laravel-5-fundamentals  http://clickcoder.com/laravel-insert-update-delete-with-eloquent-orm/  https://code.tutsplus.com/tutorials/using-illuminate-database-with-eloquent- in-your-php-app-without-laravel--cms-27247
  • 13. End