SlideShare une entreprise Scribd logo
1  sur  22
ChandraAdmin.com
Laravel Starter Kit | Laravel Admin Template
What is Laravel?
Laravel is an open source MVC PHP Framework under
MIT License
MVC Architecture

Model : Model deals with backend logical structure
of the application such as data base records. In
laravel it is denoted as Eloquent model.

View : View deals with frontend such as the HTML,
CSS. In laravel it works with Blade Template Engine
and denoted as View.

Controller : Model and View can be communicated
through Controllers. In laravel it is denoted as
Controller.
MVC Architecture
Installing Laravel
Requirements:
The Laravel framework has a few system requirements.

PHP version should be 5.5.9 or greater

Apache or any other compatible web server

Datatabase like MySQL

Composer dependency manager

IDE Tool Such as PHP Storm or Any Editor like
Sublim Text, Notepad++.
Installing Laravel

In Linux Apache, MySQL & PHP can be installed
through terminal
$ apt-get install php5-common libapache2-mod-php5
php5-cli php5-mysql php5-curl
Installing Laravel

To Check PHP
use php -v at terminal to check PHP version
Or else use localhost to check php information
Installing Laravel
Installing Laravel

Laravel utilizes Composer to manage its
dependencies. To install composer through terminal
$ curl -sS https://getcomposer.org/installer | php
$ mv composer.phar /usr/local/bin/composer
$ composer global require "laravel/installer=~1.1"
Installing Laravel
Installing Laravel

To check Composer
Create Laravel App

To Create Laravel Application through terminal
$ composer create-project laravel/laravel name-of-the-
app
Create Laravel App

Browse to the following URL in your web browser.
http://localhost/project-name/public/
Laravel directory structure

After crating laravel first app you will notice there is
huge laravel directory structure
Laravel directory structure

Let us discuss the directory structure in brief

It comes as no surprise that all Laravel projects have
essentially the same directory structure - one in which every
file has its designated place. By gently forcing this directory
structure upon developers, Laravel ensures that your work is
semi-automatically organized the “Laravel way”.

As you can see, this standard directory structure consists of
quite a few subdirectories. This wealth of subdirectories can
be overwhelming at first, but we’ll explore them one by one.
Most of your work will happen in the app/ folder, but here’s a
basic rundown on the function of each of the files and
folders:
Laravel directory structure

Top-level Folders and their purpose

/app/Contains the controllers, models, views and
assets for your application. This is where the
majority of the code for your application will live.
You will be spending most of your time in this
folder!

/public/ The only folder seen to the world as-is. This
is the directory that you have to point your web
server to. It contains the bootstrap file index.php
which jump-starts the Laravel framework core. The
public directory can also be used to hold any
publicly accessible static assets such as CSS,
Laravel directory structure

/app/Http/routes.php

Suppose routes.php file contains the below
mentioned code

Route::get('/', function()
{
return view('welcome');
});

When you browse
http://localhost/project-name/public/

It goes to routes.php and finds get request and as a
result it goes to return view('welcome'). So it then
Laravel directory structure

/resources/views/welcome.blade.php

Blade is the simple, yet powerful
templating engine provided with Laravel.

The complete user viewable contents can
be placed here

It uses html, css,javascript and php
Laravel directory structure

Suppose routes.php has the below code

Route::resource('photo', 'PhotoController');

It goes to App/Http/Controllers/ directory and finds
PhotoController.php which contains logic for
backend data.

This single route declaration creates multiple routes
to handle a variety of RESTful actions on the photo
resource.
Laravel directory structure

Methods or Actions Handled By Resource Controller

Verb Path Action
Route Name

GET /photo index
photo.index

GET /photo/create create
photo.create

POST /photo store photo.store

GET /photo/{photo} show
photo.show

GET /photo/{photo}/editedit photo.edit
Laravel directory structure

PhotoController.php

class PhotoController extends Controller
{
public function index()
{
return view('welcome');
}
public function create(){ //logic for create photo }
public function store(){ //logic for store photo }
public function show(){ //logic for show photo}
public function edit(){ //logic for edit photo }

Contenu connexe

Tendances

Tendances (20)

Getting to know Laravel 5
Getting to know Laravel 5Getting to know Laravel 5
Getting to know Laravel 5
 
Introduction to Laravel Framework (5.2)
Introduction to Laravel Framework (5.2)Introduction to Laravel Framework (5.2)
Introduction to Laravel Framework (5.2)
 
Presentation laravel 5 4
Presentation laravel 5 4Presentation laravel 5 4
Presentation laravel 5 4
 
Laravel 5
Laravel 5Laravel 5
Laravel 5
 
Laravel Introduction
Laravel IntroductionLaravel Introduction
Laravel Introduction
 
MidwestPHP 2016 - Adventures in Laravel 5
MidwestPHP 2016 - Adventures in Laravel 5 MidwestPHP 2016 - Adventures in Laravel 5
MidwestPHP 2016 - Adventures in Laravel 5
 
Why Laravel?
Why Laravel?Why Laravel?
Why Laravel?
 
A introduction to Laravel framework
A introduction to Laravel frameworkA introduction to Laravel framework
A introduction to Laravel framework
 
Knowing Laravel 5 : The most popular PHP framework
Knowing Laravel 5 : The most popular PHP frameworkKnowing Laravel 5 : The most popular PHP framework
Knowing Laravel 5 : The most popular PHP framework
 
Workshop Laravel 5.2
Workshop Laravel 5.2Workshop Laravel 5.2
Workshop Laravel 5.2
 
All Aboard for Laravel 5.1
All Aboard for Laravel 5.1All Aboard for Laravel 5.1
All Aboard for Laravel 5.1
 
Laravel for Web Artisans
Laravel for Web ArtisansLaravel for Web Artisans
Laravel for Web Artisans
 
Intro to Laravel 4
Intro to Laravel 4Intro to Laravel 4
Intro to Laravel 4
 
Laravel presentation
Laravel presentationLaravel presentation
Laravel presentation
 
Laravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello ProductionLaravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello Production
 
10 Laravel packages everyone should know
10 Laravel packages everyone should know10 Laravel packages everyone should know
10 Laravel packages everyone should know
 
Laravel - Website Development in Php Framework.
Laravel - Website Development in Php Framework.Laravel - Website Development in Php Framework.
Laravel - Website Development in Php Framework.
 
What's New in Laravel 5 (Laravel Meetup - 23th Apr 15, Yogyakarta, ID)
What's New in Laravel 5 (Laravel Meetup - 23th Apr 15, Yogyakarta, ID)What's New in Laravel 5 (Laravel Meetup - 23th Apr 15, Yogyakarta, ID)
What's New in Laravel 5 (Laravel Meetup - 23th Apr 15, Yogyakarta, ID)
 
Introduction to laravel framework
Introduction to laravel frameworkIntroduction to laravel framework
Introduction to laravel framework
 
Digpen 7: Why choose Laravel?
Digpen 7: Why choose Laravel?Digpen 7: Why choose Laravel?
Digpen 7: Why choose Laravel?
 

En vedette

Introduction to Laravel 4, Developer Conference - Digital World 2014
Introduction to Laravel 4, Developer Conference - Digital World 2014Introduction to Laravel 4, Developer Conference - Digital World 2014
Introduction to Laravel 4, Developer Conference - Digital World 2014
Mozammel Haque
 
Finding laravel from a lost advanced beginner of java
Finding laravel   from a lost advanced beginner of javaFinding laravel   from a lost advanced beginner of java
Finding laravel from a lost advanced beginner of java
Mozammel Haque
 
Laravel Restful API and AngularJS
Laravel Restful API and AngularJSLaravel Restful API and AngularJS
Laravel Restful API and AngularJS
Blake Newman
 

En vedette (6)

PHP Laravel Framework'üne Dalış
PHP Laravel Framework'üne DalışPHP Laravel Framework'üne Dalış
PHP Laravel Framework'üne Dalış
 
Introduction to Laravel 4, Developer Conference - Digital World 2014
Introduction to Laravel 4, Developer Conference - Digital World 2014Introduction to Laravel 4, Developer Conference - Digital World 2014
Introduction to Laravel 4, Developer Conference - Digital World 2014
 
Finding laravel from a lost advanced beginner of java
Finding laravel   from a lost advanced beginner of javaFinding laravel   from a lost advanced beginner of java
Finding laravel from a lost advanced beginner of java
 
Laravel Restful API and AngularJS
Laravel Restful API and AngularJSLaravel Restful API and AngularJS
Laravel Restful API and AngularJS
 
IAB-5039 : MQTT: A Protocol for the Internet of Things (InterConnect 2015)
IAB-5039 : MQTT: A Protocol for the Internet of Things (InterConnect 2015)IAB-5039 : MQTT: A Protocol for the Internet of Things (InterConnect 2015)
IAB-5039 : MQTT: A Protocol for the Internet of Things (InterConnect 2015)
 
Intro to Laravel PHP Framework
Intro to Laravel PHP FrameworkIntro to Laravel PHP Framework
Intro to Laravel PHP Framework
 

Similaire à Laravel Starter Kit | Laravel Admin Template-ChandraAdmin

Lecture 2_ Intro to laravel.pptx
Lecture 2_ Intro to laravel.pptxLecture 2_ Intro to laravel.pptx
Lecture 2_ Intro to laravel.pptx
SaziaRahman
 
Object Oriented Programming with Laravel - Session 2
Object Oriented Programming with Laravel - Session 2Object Oriented Programming with Laravel - Session 2
Object Oriented Programming with Laravel - Session 2
Shahrzad Peyman
 
Rails
RailsRails
Rails
SHC
 

Similaire à Laravel Starter Kit | Laravel Admin Template-ChandraAdmin (20)

Laravel (8) php_framework_handbook__start_from_zer_18604872_(z-lib.org)
Laravel (8) php_framework_handbook__start_from_zer_18604872_(z-lib.org)Laravel (8) php_framework_handbook__start_from_zer_18604872_(z-lib.org)
Laravel (8) php_framework_handbook__start_from_zer_18604872_(z-lib.org)
 
laravel-interview-questions.pdf
laravel-interview-questions.pdflaravel-interview-questions.pdf
laravel-interview-questions.pdf
 
Lecture 2_ Intro to laravel.pptx
Lecture 2_ Intro to laravel.pptxLecture 2_ Intro to laravel.pptx
Lecture 2_ Intro to laravel.pptx
 
laravel.pptx
laravel.pptxlaravel.pptx
laravel.pptx
 
Laravel Tutorial PPT
Laravel Tutorial PPTLaravel Tutorial PPT
Laravel Tutorial PPT
 
Laravel overview
Laravel overviewLaravel overview
Laravel overview
 
Laravel development (Laravel History, Environment Setup & Laravel Installatio...
Laravel development (Laravel History, Environment Setup & Laravel Installatio...Laravel development (Laravel History, Environment Setup & Laravel Installatio...
Laravel development (Laravel History, Environment Setup & Laravel Installatio...
 
Laravel & Composer presentation - extended
Laravel & Composer presentation - extendedLaravel & Composer presentation - extended
Laravel & Composer presentation - extended
 
Getting started with laravel
Getting started with laravelGetting started with laravel
Getting started with laravel
 
Frequently Asked Questions About Laravel
Frequently Asked Questions About LaravelFrequently Asked Questions About Laravel
Frequently Asked Questions About Laravel
 
Laravel 5.3 - Web Development Php framework
Laravel 5.3 - Web Development Php frameworkLaravel 5.3 - Web Development Php framework
Laravel 5.3 - Web Development Php framework
 
Object Oriented Programming with Laravel - Session 2
Object Oriented Programming with Laravel - Session 2Object Oriented Programming with Laravel - Session 2
Object Oriented Programming with Laravel - Session 2
 
Laravel & Composer presentation - WebHostFace
Laravel & Composer presentation - WebHostFace Laravel & Composer presentation - WebHostFace
Laravel & Composer presentation - WebHostFace
 
Hidden things uncovered about laravel development
Hidden things uncovered about laravel developmentHidden things uncovered about laravel development
Hidden things uncovered about laravel development
 
Laravel : A Fastest Growing Kid
Laravel : A Fastest Growing KidLaravel : A Fastest Growing Kid
Laravel : A Fastest Growing Kid
 
Rails
RailsRails
Rails
 
Ruby On Rails
Ruby On RailsRuby On Rails
Ruby On Rails
 
Lecture11_LaravelGetStarted_SPring2023.pdf
Lecture11_LaravelGetStarted_SPring2023.pdfLecture11_LaravelGetStarted_SPring2023.pdf
Lecture11_LaravelGetStarted_SPring2023.pdf
 
Laravel - A Trending PHP Framework
Laravel - A Trending PHP FrameworkLaravel - A Trending PHP Framework
Laravel - A Trending PHP Framework
 
Laravel
LaravelLaravel
Laravel
 

Dernier

AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 

Dernier (20)

8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 

Laravel Starter Kit | Laravel Admin Template-ChandraAdmin

  • 1. ChandraAdmin.com Laravel Starter Kit | Laravel Admin Template
  • 2.
  • 3. What is Laravel? Laravel is an open source MVC PHP Framework under MIT License
  • 4. MVC Architecture  Model : Model deals with backend logical structure of the application such as data base records. In laravel it is denoted as Eloquent model.  View : View deals with frontend such as the HTML, CSS. In laravel it works with Blade Template Engine and denoted as View.  Controller : Model and View can be communicated through Controllers. In laravel it is denoted as Controller.
  • 6. Installing Laravel Requirements: The Laravel framework has a few system requirements.  PHP version should be 5.5.9 or greater  Apache or any other compatible web server  Datatabase like MySQL  Composer dependency manager  IDE Tool Such as PHP Storm or Any Editor like Sublim Text, Notepad++.
  • 7. Installing Laravel  In Linux Apache, MySQL & PHP can be installed through terminal $ apt-get install php5-common libapache2-mod-php5 php5-cli php5-mysql php5-curl
  • 8. Installing Laravel  To Check PHP use php -v at terminal to check PHP version Or else use localhost to check php information
  • 10. Installing Laravel  Laravel utilizes Composer to manage its dependencies. To install composer through terminal $ curl -sS https://getcomposer.org/installer | php $ mv composer.phar /usr/local/bin/composer $ composer global require "laravel/installer=~1.1"
  • 13. Create Laravel App  To Create Laravel Application through terminal $ composer create-project laravel/laravel name-of-the- app
  • 14. Create Laravel App  Browse to the following URL in your web browser. http://localhost/project-name/public/
  • 15. Laravel directory structure  After crating laravel first app you will notice there is huge laravel directory structure
  • 16. Laravel directory structure  Let us discuss the directory structure in brief  It comes as no surprise that all Laravel projects have essentially the same directory structure - one in which every file has its designated place. By gently forcing this directory structure upon developers, Laravel ensures that your work is semi-automatically organized the “Laravel way”.  As you can see, this standard directory structure consists of quite a few subdirectories. This wealth of subdirectories can be overwhelming at first, but we’ll explore them one by one. Most of your work will happen in the app/ folder, but here’s a basic rundown on the function of each of the files and folders:
  • 17. Laravel directory structure  Top-level Folders and their purpose  /app/Contains the controllers, models, views and assets for your application. This is where the majority of the code for your application will live. You will be spending most of your time in this folder!  /public/ The only folder seen to the world as-is. This is the directory that you have to point your web server to. It contains the bootstrap file index.php which jump-starts the Laravel framework core. The public directory can also be used to hold any publicly accessible static assets such as CSS,
  • 18. Laravel directory structure  /app/Http/routes.php  Suppose routes.php file contains the below mentioned code  Route::get('/', function() { return view('welcome'); });  When you browse http://localhost/project-name/public/  It goes to routes.php and finds get request and as a result it goes to return view('welcome'). So it then
  • 19. Laravel directory structure  /resources/views/welcome.blade.php  Blade is the simple, yet powerful templating engine provided with Laravel.  The complete user viewable contents can be placed here  It uses html, css,javascript and php
  • 20. Laravel directory structure  Suppose routes.php has the below code  Route::resource('photo', 'PhotoController');  It goes to App/Http/Controllers/ directory and finds PhotoController.php which contains logic for backend data.  This single route declaration creates multiple routes to handle a variety of RESTful actions on the photo resource.
  • 21. Laravel directory structure  Methods or Actions Handled By Resource Controller  Verb Path Action Route Name  GET /photo index photo.index  GET /photo/create create photo.create  POST /photo store photo.store  GET /photo/{photo} show photo.show  GET /photo/{photo}/editedit photo.edit
  • 22. Laravel directory structure  PhotoController.php  class PhotoController extends Controller { public function index() { return view('welcome'); } public function create(){ //logic for create photo } public function store(){ //logic for store photo } public function show(){ //logic for show photo} public function edit(){ //logic for edit photo }