SlideShare a Scribd company logo
1 of 7
Laravel8.0
Laravel is a great PHP framework, it changed the way we write code by borrowing the
best practices from great tools like Symfony, Ruby on Rails and it’s been evolving
with lot of best practices on its own.
I love this PHP-based framework more than any other framework as it makes the
process of software development easier to implement modules, packages, plugins, and
components.
I am Danish Mirza and I’m writing this article to get you through the top Laravel
packages to enhance your web application and performance.
5 Best Laravel Packages For Building Laravel Apps
Why do I create this list? My Name is Danish Mirza .I’m a Lazy
Developerthat’s why I don’t want to build all thing from scratch.
1. Modules
If You are building a bigger app than Hello Word. Start workingwith
modules.
Keep module entities,controllers,views, routes,configs etc in one
place.
Advantages
 Code encapsulation
 Order in the code
 Easier code transfer between apps
 Code Generation — module,controllers,entities etc.
2. Spatie permissions
Spatie Roles & Permission is one of there best permissions package.
Advantages
 Roles
 Permissions
 Direct Permissions
 Artisan commands
3. Laravel Datatables
If You use DataTables and you are buildingyourself javascript, ajax,
routes,database queries,filters,search etc. There is an easier solution.
Advantages
 Easy to use
 DataTable Service
 Creates database queries for You
 Generates Javascript
 Multiple customisations
4. Easy flash notifications
After saving data from the form I like to redirect the user to list page,
edit view or show view. With this package, i can easily notify user about
success,warning or error.
Advantages
 Easy to use
 Multiple flash options (Success,Error, Warning, Overlay, Modal
etc)
5. Laravel Js Validation
I really like this one. Automatic front validation base on request object
sound good right? It’s always better to write less code — lazy way.
Advantages
 Generates Front-End validation base on request obejct.
 No Javascript coding required
 Ajax validation supported (Unique,Exists, Custom Validation
Rules).
Using Laravel’s Eloquent
Efficiently
I’ve seen many cases where Eloquent’s relations and their underlying query builders are
not used efficiently. Many of these cases exist because there are multiple paths to the
same data, many of which look and feel like equivalent solutions.
The first will go to the database, fetch all posts related to the blog, and create a
Collection of models. This is expensive because we have to create and hydrate an
instance of every related model.
A good policy is to do as much as possible in the database during the query and as little
as possible in PHP, for example where in the database will be much faster than
where on a Collection.
One to One Relationship with Example
One to one relationship is one of basic relationships. For example, a User model would
be associated with a Address model. To illustrate this relationship, we can create a
address() method within the User model and call the hasOne() method to relate the
Address model.
One to Many Relationship Example
One of many relationships determines a relationship where one single model owns the
number of the other model. For example, a developer may have many projects.
Many to Many Relationship Example
Each post have many tag and each tag can have many post.To define many to many
relationships, we use belongsToMany() method.
Laravel8.xAuthExamplewithJetstream
Laravel 8 has totally changed the auth scaffolding. Latest version of Laravel 8 , in
this version laravel uses Laravel's laravel/jetstream package that provides a
quick way to scaffold auth.
Laravel Jetstream
Laravel Jetstream is a beautifully designed application scaffolding for Laravel.
Jetstream provides the perfect starting point for your next Laravel application and
includes login, registration, email verification, two-factor authentication, session
management.
First, download the Laravel installer using Composer:
composer global require laravel/installer
now run below command to download a latest laravel 8 application.
laravel new laravel8 –jet
Before we have installed the Laravel Installer, so you may use the --jet option
to create a new Jetstream powered Laravel application: Run above
command to get new Laravel with jetstream features.
Now in this step we need to migrate our database. So run below command. It
will migrates many tables.
php artisan migrate
And finally run below command to compile our js file.
npm install
//then
npm run dev
Now after running php artisan serve command you can visit the root url.
Now if you want to disable registration or update password or reset password
you can open fortify.php and comment or uncomment the below line of code
which features you want include or exclude.
'features'=> [
Features::registration(),
Features::resetPasswords(),
// Features::emailVerification(),
Features::updateProfileInformation(),
Features::updatePasswords(),
Features::twoFactorAuthentication(),
],

More Related Content

What's hot

Learn How To Develop With CakePHP
Learn How To Develop With CakePHPLearn How To Develop With CakePHP
Learn How To Develop With CakePHPMichael Bourque
 
SEMjs - Planting Seeds with Elm
SEMjs - Planting Seeds with ElmSEMjs - Planting Seeds with Elm
SEMjs - Planting Seeds with ElmMike Onslow
 
Selenium WebDriver: Tips and Tricks
Selenium WebDriver: Tips and TricksSelenium WebDriver: Tips and Tricks
Selenium WebDriver: Tips and TricksEdureka!
 
Developing Flask Extensions
Developing Flask ExtensionsDeveloping Flask Extensions
Developing Flask ExtensionsRachel Sanders
 
Designing an effective hybrid apps automation framework
Designing an effective hybrid apps automation frameworkDesigning an effective hybrid apps automation framework
Designing an effective hybrid apps automation frameworkAndrea Tino
 
Web Test Automation with Selenium
Web Test Automation with SeleniumWeb Test Automation with Selenium
Web Test Automation with Seleniumvivek_prahlad
 
Indic threads java10-spring-roo-and-the-cloud
Indic threads java10-spring-roo-and-the-cloudIndic threads java10-spring-roo-and-the-cloud
Indic threads java10-spring-roo-and-the-cloudShekhar Gulati
 
Evolving an Application Architecture
Evolving an Application ArchitectureEvolving an Application Architecture
Evolving an Application ArchitectureGarret Fick
 
10 practices that every developer needs to start right now
10 practices that every developer needs to start right now10 practices that every developer needs to start right now
10 practices that every developer needs to start right nowCaleb Jenkins
 
ASP.NET AJAX with Visual Studio 2008
ASP.NET AJAX with Visual Studio 2008ASP.NET AJAX with Visual Studio 2008
ASP.NET AJAX with Visual Studio 2008Caleb Jenkins
 
Introduction to Protractor
Introduction to ProtractorIntroduction to Protractor
Introduction to ProtractorFlorian Fesseler
 
API Technical Writing
API Technical WritingAPI Technical Writing
API Technical WritingSarah Maddox
 
Selenium WebDriver - Test automation for web applications
Selenium WebDriver - Test automation for web applicationsSelenium WebDriver - Test automation for web applications
Selenium WebDriver - Test automation for web applicationsTSundberg
 
Automation Using Selenium Webdriver
Automation Using Selenium WebdriverAutomation Using Selenium Webdriver
Automation Using Selenium WebdriverEdureka!
 
Rails Plugins 1 Plugin
Rails Plugins 1 PluginRails Plugins 1 Plugin
Rails Plugins 1 Pluginoscon2007
 
Progressive EPiServer Development
Progressive EPiServer DevelopmentProgressive EPiServer Development
Progressive EPiServer Developmentjoelabrahamsson
 

What's hot (20)

Learn How To Develop With CakePHP
Learn How To Develop With CakePHPLearn How To Develop With CakePHP
Learn How To Develop With CakePHP
 
SEMjs - Planting Seeds with Elm
SEMjs - Planting Seeds with ElmSEMjs - Planting Seeds with Elm
SEMjs - Planting Seeds with Elm
 
Selenium WebDriver: Tips and Tricks
Selenium WebDriver: Tips and TricksSelenium WebDriver: Tips and Tricks
Selenium WebDriver: Tips and Tricks
 
Developing Flask Extensions
Developing Flask ExtensionsDeveloping Flask Extensions
Developing Flask Extensions
 
Designing an effective hybrid apps automation framework
Designing an effective hybrid apps automation frameworkDesigning an effective hybrid apps automation framework
Designing an effective hybrid apps automation framework
 
Web Test Automation with Selenium
Web Test Automation with SeleniumWeb Test Automation with Selenium
Web Test Automation with Selenium
 
Indic threads java10-spring-roo-and-the-cloud
Indic threads java10-spring-roo-and-the-cloudIndic threads java10-spring-roo-and-the-cloud
Indic threads java10-spring-roo-and-the-cloud
 
Evolving an Application Architecture
Evolving an Application ArchitectureEvolving an Application Architecture
Evolving an Application Architecture
 
Cakephp
CakephpCakephp
Cakephp
 
10 practices that every developer needs to start right now
10 practices that every developer needs to start right now10 practices that every developer needs to start right now
10 practices that every developer needs to start right now
 
ASP.NET AJAX with Visual Studio 2008
ASP.NET AJAX with Visual Studio 2008ASP.NET AJAX with Visual Studio 2008
ASP.NET AJAX with Visual Studio 2008
 
Introduction to Protractor
Introduction to ProtractorIntroduction to Protractor
Introduction to Protractor
 
API Technical Writing
API Technical WritingAPI Technical Writing
API Technical Writing
 
Selenium WebDriver - Test automation for web applications
Selenium WebDriver - Test automation for web applicationsSelenium WebDriver - Test automation for web applications
Selenium WebDriver - Test automation for web applications
 
Selenium
SeleniumSelenium
Selenium
 
Selenium Frameworks
Selenium FrameworksSelenium Frameworks
Selenium Frameworks
 
Automation Using Selenium Webdriver
Automation Using Selenium WebdriverAutomation Using Selenium Webdriver
Automation Using Selenium Webdriver
 
Selenium for Jobseekers
Selenium for JobseekersSelenium for Jobseekers
Selenium for Jobseekers
 
Rails Plugins 1 Plugin
Rails Plugins 1 PluginRails Plugins 1 Plugin
Rails Plugins 1 Plugin
 
Progressive EPiServer Development
Progressive EPiServer DevelopmentProgressive EPiServer Development
Progressive EPiServer Development
 

Similar to Article laravel 8

The Ultimate Guide to Laravel Performance Optimization in 2022.pdf
The Ultimate Guide to Laravel Performance Optimization in 2022.pdfThe Ultimate Guide to Laravel Performance Optimization in 2022.pdf
The Ultimate Guide to Laravel Performance Optimization in 2022.pdfKaty Slemon
 
Latest Laravel Practice 2023 Experts Guidance.pdf
Latest Laravel Practice 2023 Experts Guidance.pdfLatest Laravel Practice 2023 Experts Guidance.pdf
Latest Laravel Practice 2023 Experts Guidance.pdfSufalam Technologies
 
What’s New in Laravel 8 for a Laravel Development Company?
What’s New in Laravel 8 for a Laravel Development Company?What’s New in Laravel 8 for a Laravel Development Company?
What’s New in Laravel 8 for a Laravel Development Company?Inexture Solutions
 
SMBs achieve remarkable TTM leveraging Laravel-PHP Framework
 SMBs achieve remarkable TTM leveraging Laravel-PHP Framework SMBs achieve remarkable TTM leveraging Laravel-PHP Framework
SMBs achieve remarkable TTM leveraging Laravel-PHP FrameworkMindfire LLC
 
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)ssuser337865
 
Top 10 Useful tools for Laravel development.pdf
Top 10 Useful tools for Laravel development.pdfTop 10 Useful tools for Laravel development.pdf
Top 10 Useful tools for Laravel development.pdfMoon Technolabs Pvt. Ltd.
 
Why choose the laravel php framework for enterprise web applications
Why choose the laravel php framework for enterprise web applications Why choose the laravel php framework for enterprise web applications
Why choose the laravel php framework for enterprise web applications Concetto Labs
 
Laravel website security and performance optimization guide (pro tips to fine...
Laravel website security and performance optimization guide (pro tips to fine...Laravel website security and performance optimization guide (pro tips to fine...
Laravel website security and performance optimization guide (pro tips to fine...Katy Slemon
 
Laravel vs ASP.NET Framework .pdf
Laravel vs ASP.NET Framework .pdfLaravel vs ASP.NET Framework .pdf
Laravel vs ASP.NET Framework .pdfWPWeb Infotech
 
Hidden things uncovered about laravel development
Hidden things uncovered about laravel developmentHidden things uncovered about laravel development
Hidden things uncovered about laravel developmentKaty Slemon
 
8_reasons_php_developers_love_using_laravel.pptx
8_reasons_php_developers_love_using_laravel.pptx8_reasons_php_developers_love_using_laravel.pptx
8_reasons_php_developers_love_using_laravel.pptxsarah david
 
Why Laravel is the first choice for Web development_.pdf
Why Laravel is the first choice for Web development_.pdfWhy Laravel is the first choice for Web development_.pdf
Why Laravel is the first choice for Web development_.pdfMoon Technolabs Pvt. Ltd.
 
Advanced features of Laravel development
Advanced features of Laravel developmentAdvanced features of Laravel development
Advanced features of Laravel developmentAResourcePool
 
What's new in laravel 9 a complete guide for laravel website development
What's new in laravel 9  a complete guide for laravel website developmentWhat's new in laravel 9  a complete guide for laravel website development
What's new in laravel 9 a complete guide for laravel website developmentMoon Technolabs Pvt. Ltd.
 
The trend of laravel application development will never end!
The trend of laravel application development will never end!The trend of laravel application development will never end!
The trend of laravel application development will never end!Concetto Labs
 
Why Choose Laravel Framework for Your Next Web Development Project?
Why Choose Laravel Framework for Your Next Web Development Project?Why Choose Laravel Framework for Your Next Web Development Project?
Why Choose Laravel Framework for Your Next Web Development Project?Windzoon Technologies
 
Laravel – The Perfect PHP Framework for Startups
Laravel – The Perfect PHP Framework for StartupsLaravel – The Perfect PHP Framework for Startups
Laravel – The Perfect PHP Framework for StartupsPixlogix Infotech
 
Top 12 Advantages Of Using Laravel Framework In 2023
Top 12 Advantages Of Using Laravel Framework In 2023Top 12 Advantages Of Using Laravel Framework In 2023
Top 12 Advantages Of Using Laravel Framework In 2023Sterling Technolabs
 
8_reasons_php_developers_love_using_laravel.pdf
8_reasons_php_developers_love_using_laravel.pdf8_reasons_php_developers_love_using_laravel.pdf
8_reasons_php_developers_love_using_laravel.pdfsarah david
 

Similar to Article laravel 8 (20)

The Ultimate Guide to Laravel Performance Optimization in 2022.pdf
The Ultimate Guide to Laravel Performance Optimization in 2022.pdfThe Ultimate Guide to Laravel Performance Optimization in 2022.pdf
The Ultimate Guide to Laravel Performance Optimization in 2022.pdf
 
Latest Laravel Practice 2023 Experts Guidance.pdf
Latest Laravel Practice 2023 Experts Guidance.pdfLatest Laravel Practice 2023 Experts Guidance.pdf
Latest Laravel Practice 2023 Experts Guidance.pdf
 
What’s New in Laravel 8 for a Laravel Development Company?
What’s New in Laravel 8 for a Laravel Development Company?What’s New in Laravel 8 for a Laravel Development Company?
What’s New in Laravel 8 for a Laravel Development Company?
 
SMBs achieve remarkable TTM leveraging Laravel-PHP Framework
 SMBs achieve remarkable TTM leveraging Laravel-PHP Framework SMBs achieve remarkable TTM leveraging Laravel-PHP Framework
SMBs achieve remarkable TTM leveraging Laravel-PHP Framework
 
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)
 
Top 10 Useful tools for Laravel development.pdf
Top 10 Useful tools for Laravel development.pdfTop 10 Useful tools for Laravel development.pdf
Top 10 Useful tools for Laravel development.pdf
 
Why choose the laravel php framework for enterprise web applications
Why choose the laravel php framework for enterprise web applications Why choose the laravel php framework for enterprise web applications
Why choose the laravel php framework for enterprise web applications
 
Laravel website security and performance optimization guide (pro tips to fine...
Laravel website security and performance optimization guide (pro tips to fine...Laravel website security and performance optimization guide (pro tips to fine...
Laravel website security and performance optimization guide (pro tips to fine...
 
Laravel vs ASP.NET Framework .pdf
Laravel vs ASP.NET Framework .pdfLaravel vs ASP.NET Framework .pdf
Laravel vs ASP.NET Framework .pdf
 
Hidden things uncovered about laravel development
Hidden things uncovered about laravel developmentHidden things uncovered about laravel development
Hidden things uncovered about laravel development
 
8_reasons_php_developers_love_using_laravel.pptx
8_reasons_php_developers_love_using_laravel.pptx8_reasons_php_developers_love_using_laravel.pptx
8_reasons_php_developers_love_using_laravel.pptx
 
Why Laravel is the first choice for Web development_.pdf
Why Laravel is the first choice for Web development_.pdfWhy Laravel is the first choice for Web development_.pdf
Why Laravel is the first choice for Web development_.pdf
 
Laravel 9_ Unlock the Exciting Features Here!.pptx
Laravel 9_ Unlock the Exciting Features Here!.pptxLaravel 9_ Unlock the Exciting Features Here!.pptx
Laravel 9_ Unlock the Exciting Features Here!.pptx
 
Advanced features of Laravel development
Advanced features of Laravel developmentAdvanced features of Laravel development
Advanced features of Laravel development
 
What's new in laravel 9 a complete guide for laravel website development
What's new in laravel 9  a complete guide for laravel website developmentWhat's new in laravel 9  a complete guide for laravel website development
What's new in laravel 9 a complete guide for laravel website development
 
The trend of laravel application development will never end!
The trend of laravel application development will never end!The trend of laravel application development will never end!
The trend of laravel application development will never end!
 
Why Choose Laravel Framework for Your Next Web Development Project?
Why Choose Laravel Framework for Your Next Web Development Project?Why Choose Laravel Framework for Your Next Web Development Project?
Why Choose Laravel Framework for Your Next Web Development Project?
 
Laravel – The Perfect PHP Framework for Startups
Laravel – The Perfect PHP Framework for StartupsLaravel – The Perfect PHP Framework for Startups
Laravel – The Perfect PHP Framework for Startups
 
Top 12 Advantages Of Using Laravel Framework In 2023
Top 12 Advantages Of Using Laravel Framework In 2023Top 12 Advantages Of Using Laravel Framework In 2023
Top 12 Advantages Of Using Laravel Framework In 2023
 
8_reasons_php_developers_love_using_laravel.pdf
8_reasons_php_developers_love_using_laravel.pdf8_reasons_php_developers_love_using_laravel.pdf
8_reasons_php_developers_love_using_laravel.pdf
 

Recently uploaded

costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 

Recently uploaded (20)

costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 

Article laravel 8

  • 1. Laravel8.0 Laravel is a great PHP framework, it changed the way we write code by borrowing the best practices from great tools like Symfony, Ruby on Rails and it’s been evolving with lot of best practices on its own. I love this PHP-based framework more than any other framework as it makes the process of software development easier to implement modules, packages, plugins, and components. I am Danish Mirza and I’m writing this article to get you through the top Laravel packages to enhance your web application and performance. 5 Best Laravel Packages For Building Laravel Apps Why do I create this list? My Name is Danish Mirza .I’m a Lazy Developerthat’s why I don’t want to build all thing from scratch.
  • 2. 1. Modules If You are building a bigger app than Hello Word. Start workingwith modules. Keep module entities,controllers,views, routes,configs etc in one place. Advantages  Code encapsulation  Order in the code  Easier code transfer between apps  Code Generation — module,controllers,entities etc. 2. Spatie permissions Spatie Roles & Permission is one of there best permissions package. Advantages  Roles  Permissions  Direct Permissions  Artisan commands 3. Laravel Datatables
  • 3. If You use DataTables and you are buildingyourself javascript, ajax, routes,database queries,filters,search etc. There is an easier solution. Advantages  Easy to use  DataTable Service  Creates database queries for You  Generates Javascript  Multiple customisations 4. Easy flash notifications After saving data from the form I like to redirect the user to list page, edit view or show view. With this package, i can easily notify user about success,warning or error. Advantages  Easy to use  Multiple flash options (Success,Error, Warning, Overlay, Modal etc) 5. Laravel Js Validation
  • 4. I really like this one. Automatic front validation base on request object sound good right? It’s always better to write less code — lazy way. Advantages  Generates Front-End validation base on request obejct.  No Javascript coding required  Ajax validation supported (Unique,Exists, Custom Validation Rules). Using Laravel’s Eloquent Efficiently I’ve seen many cases where Eloquent’s relations and their underlying query builders are not used efficiently. Many of these cases exist because there are multiple paths to the same data, many of which look and feel like equivalent solutions. The first will go to the database, fetch all posts related to the blog, and create a Collection of models. This is expensive because we have to create and hydrate an instance of every related model. A good policy is to do as much as possible in the database during the query and as little as possible in PHP, for example where in the database will be much faster than where on a Collection.
  • 5. One to One Relationship with Example One to one relationship is one of basic relationships. For example, a User model would be associated with a Address model. To illustrate this relationship, we can create a address() method within the User model and call the hasOne() method to relate the Address model. One to Many Relationship Example One of many relationships determines a relationship where one single model owns the number of the other model. For example, a developer may have many projects. Many to Many Relationship Example Each post have many tag and each tag can have many post.To define many to many relationships, we use belongsToMany() method. Laravel8.xAuthExamplewithJetstream Laravel 8 has totally changed the auth scaffolding. Latest version of Laravel 8 , in this version laravel uses Laravel's laravel/jetstream package that provides a quick way to scaffold auth. Laravel Jetstream Laravel Jetstream is a beautifully designed application scaffolding for Laravel. Jetstream provides the perfect starting point for your next Laravel application and includes login, registration, email verification, two-factor authentication, session management. First, download the Laravel installer using Composer: composer global require laravel/installer now run below command to download a latest laravel 8 application. laravel new laravel8 –jet
  • 6. Before we have installed the Laravel Installer, so you may use the --jet option to create a new Jetstream powered Laravel application: Run above command to get new Laravel with jetstream features. Now in this step we need to migrate our database. So run below command. It will migrates many tables. php artisan migrate And finally run below command to compile our js file. npm install //then npm run dev Now after running php artisan serve command you can visit the root url. Now if you want to disable registration or update password or reset password you can open fortify.php and comment or uncomment the below line of code which features you want include or exclude. 'features'=> [ Features::registration(), Features::resetPasswords(), // Features::emailVerification(), Features::updateProfileInformation(), Features::updatePasswords(), Features::twoFactorAuthentication(),
  • 7. ],