INT221:MVC PROGRAMMING
What is Laravel ?
Laravel is a PHP based web framework for
building high-end web applications using its
significant and graceful syntaxes.
It comes with a robust collection of tools and
provides application architecture.
What is Laravel ?
Moreover, it includes various characteristics of
technologies like ASP.NET MVC, CodeIgniter, Ruby
on Rails, and many more.
This framework is an open-source framework.
It facilitates developers by saving huge time and
helps reduce thinking and planning to develop the
entire website from scratch.
What is Laravel ?
The security of the application is also taken care
of by Laravel
The current version of Laravel is 8, which is a
stable release, released on September 8, 2020.
And anyone can check its open-source GitHub
repository from this link below:
https://github.com/laravel/framework
Facts about Laravel
• Taylor Otwell developed Laravel in July 2011, and it
was released more than five years after the release
of the Codeigniter framework.
• Laravel is a PHP based web-framework
like Codeigniter.
• Laravel is one of the open-source PHP frameworks.
• Laravel follows the model-view-controller (MVC)
architectural pattern.
• Laravel is one of the most popular PHP frameworks
after Codeigniter.
Features of Laravel
• Routing controllers.
• Configuration management.
• Testability.
• Authentication and authorization of users.
• Modularity.
• ORM (Object Relational Mapper) features.
• Provides a template engine.
• Building schemas.
• E-mailing facilities.
MVC
MVC
LARAVEL INSTALLATION
https://laravel.com/docs/4.2
composer create-project --prefer-dist
laravel/laravel mvc
Laravel Application Structure
Laravel Application Structure
The App Directory
The app directory contains the core code of user application.
Almost all of the classes in user application will be in this
directory.
The Bootstrap Directory
The bootstrap directory contains the app.php file which
bootstraps the framework.
The Config Directory
The config directorycontains all of user application's
configuration files.
Laravel Application Structure
The Database Directory
The database directory contains user database migrations,
model factories, and seeds.
The Public Directory
The public directory contains the index.php file, which is the
entry point for all requests entering user application and
configures autoloading.
This directory also houses users assets such as images,
JavaScript, and CSS.
Laravel Application Structure
The Resources Directory
The resources directory contains user views as well as raw,
un-compiled assets such as CSS or JavaScript.
This directory also houses all of language files..
The Routes Directory
The routes directory contains all of the route definitions for
user application.
By default, several route files are included with Laravel:
web.php, api.php, console.php, and channels.php.
Laravel Application Structure
The Storage Directory
The storage directory contains user logs, compiled Blade
templates, file based sessions, file caches, and other files
generated by the framework.
The app directory may be used to store any files generated
by user application.
The Tests Directory
The tests directory contains automated tests.
The Vendor Directory
The vendor directory contains Composer dependencies.
app Directory