SlideShare ist ein Scribd-Unternehmen logo
1 von 9
Downloaden Sie, um offline zu lesen
www.techtic.com | info@techtic.com
New Features of Laravel 5.8
www.techtic.com | info@techtic.com
List of laravel 5.8 Features
• Automatic Policy Resolution
• Update Cache TTL
• Support Carbon 2.0
• HasOneThrough Eloquent Relationship
• Token Guard Token Hashing
• Scheduler timezone Configuration
• Artisan Call Improvements
• Artisan Serve Improvements
• Mock Testing Helper Methods
• Higher Order orWhere Eloquent Method
www.techtic.com | info@techtic.com
Features of laravel 5.8
Automatic Policy Resolution
First up on the agenda is automatic policy discovery. In past versions of Laravel,
each time a policy class is generated, you'd need to visit our AuthServiceProvider to
manually wire it up with the appropriate model. It's not the end of the world, but
still nonetheless a bit tedious. Now in Laravel 5.8, as long as you follow the standard
naming convention, this policy discovery happens automatically.
Update Cache TTL
A small, but important breaking change in Laravel 5.8 is the switch from minutes to
seconds for all cache TTLs. In your codebase, track down any reference to cache()-
>put(), cache()->remember(), or any other variants, and do the necessary math to
convert the expiration date from minutes to seconds (multiply by 60).
www.techtic.com | info@techtic.com
Features of laravel 5.8
Support Carbon 2.0
Carbon is a package that extends PHP’s own DateTime class and makes working
with dates and time very easy. Laravel 5.8 provides support for the 2.0 release of
Carbon. Among the new features of Carbon 2.0 is the CarbonImmutable class and a
new Date facade.
HasOneThrough Eloquent Relationship
Previously to get a supplier’s account history, you will have to find the supplier then
write something like: $supplier->account->accountHistory. Now you may use
a hasOneThrough relationship to skip this step, accessing a supplier’s account
history straight away like this: $history = $supplier->accountHistory through the
account model
www.techtic.com | info@techtic.com
Features of laravel 5.8
Token Guard Token Hashing
There is a simpler token guard which provides basic API authentication and in
Laravel 5.8 it now supports storing tokens as SHA-256 hashes. This provides greater
security over storing plain-text tokens.
Scheduler timezone Configuration
In previous releases, you have to repeat this for every scheduled task and this can
quickly become cumbersome if you have many of them. In Laravel 5.8 you can just
define a method called scheduledTimezone in your app/Console/kernel.php file
and return your default timezone.
www.techtic.com | info@techtic.com
Features of laravel 5.8
Artisan Call Improvements
Laravel allows you to make Artisan commands from your code using
the Artisan::call method.
Artisan Serve Improvements
A way to quickly serve your Laravel application is by running the command php
artisan serve. In previous versions of Laravel this command will run your
application in a default port of 8000 and if you attempt to serve another application
with the same command, this would fail. Now in version 5.8 the servecommand will
scan for available ports up to port 8009 so you can serve multiple applications at
once.
www.techtic.com | info@techtic.com
Features of laravel 5.8
Mock Testing Helper Methods
When preparing your tests, you'll need to mock a class, set an expectation, and
then update the related instance in Laravel's service container with your mocked
version. Laravel 5.8 now ships with two testing helpers to simplify this setup a
good bit: $this->mock() and $this->spy().
Higher Order orWhere Eloquent Method
Laravel 5.8 introduces a “higher order” orWhere method, so you don’t need to
write the above closure anymore.
www.techtic.com | info@techtic.com
Techtic Solutions, Inc. is one of the most trusted Laravel development company
with 10+ years of web development experience. Our team of experienced Laravel
developers are adept at building simple to the most complex website apps
seamlessly using Laravel PHP frameworks. Our clients swear by the codes we write
– they are simple, expressive and scalable. We help build sophisticated websites
that help maximize ROI for your business.
We leverage the robust features and dynamic functionality of Laravel to deliver
superior experience to your customers.
About Techtic Solutions
Our Services:
Custom Laravel Web Development
Laravel CMS development
Laravel Application Development
Laravel Ecommerce Development
Laravel Enterprise Solution
Laravel Customization
Laravel Theme/Template Design
Laravel Plugin Development
Laravel REST API Development
Laravel Support & Maintenance
Contact Us
Visit us: https://www.techtic.com
Email: info@techtic.com
Phone: +1 201.793.8324

Weitere ähnliche Inhalte

Mehr von Techtic Solutions

8 Factors will Drive Fintech Growth in 2021
8 Factors will Drive Fintech Growth in 20218 Factors will Drive Fintech Growth in 2021
8 Factors will Drive Fintech Growth in 2021Techtic Solutions
 
Top 12 Advantages of Laravel Framework
Top 12 Advantages of Laravel FrameworkTop 12 Advantages of Laravel Framework
Top 12 Advantages of Laravel FrameworkTechtic Solutions
 
10 Common Applications of Artificial Intelligence in Healthcare
10 Common Applications of Artificial Intelligence in Healthcare10 Common Applications of Artificial Intelligence in Healthcare
10 Common Applications of Artificial Intelligence in HealthcareTechtic Solutions
 
What security measures do we take when working remotely?
What security measures do we take when working remotely?What security measures do we take when working remotely?
What security measures do we take when working remotely?Techtic Solutions
 
How Techtic Implements Seamless Project Management?
How Techtic Implements Seamless Project Management?How Techtic Implements Seamless Project Management?
How Techtic Implements Seamless Project Management?Techtic Solutions
 
Facts of Software Development
Facts of Software DevelopmentFacts of Software Development
Facts of Software DevelopmentTechtic Solutions
 
How to Integrate Mobile App with Website?
How to Integrate Mobile App with Website?How to Integrate Mobile App with Website?
How to Integrate Mobile App with Website?Techtic Solutions
 
10 On-demand App Statistics to look at During COVID-19
10 On-demand App Statistics to look at During COVID-1910 On-demand App Statistics to look at During COVID-19
10 On-demand App Statistics to look at During COVID-19Techtic Solutions
 
What’s new in Laravel 7.8?
What’s new in Laravel 7.8?What’s new in Laravel 7.8?
What’s new in Laravel 7.8?Techtic Solutions
 
Laravel Vs Django, Which Backend Framework is better?
Laravel Vs Django, Which Backend Framework is better?Laravel Vs Django, Which Backend Framework is better?
Laravel Vs Django, Which Backend Framework is better?Techtic Solutions
 
Differences between Mobile Apps and Websites – Techtic Solutions
Differences between Mobile Apps and Websites – Techtic SolutionsDifferences between Mobile Apps and Websites – Techtic Solutions
Differences between Mobile Apps and Websites – Techtic SolutionsTechtic Solutions
 
How to Integrate Mobile App with Website? – Techtic Solutions
How to Integrate Mobile App with Website? – Techtic SolutionsHow to Integrate Mobile App with Website? – Techtic Solutions
How to Integrate Mobile App with Website? – Techtic SolutionsTechtic Solutions
 
Advantages of Mobile Apps – Techtic Solutions
Advantages of Mobile Apps – Techtic SolutionsAdvantages of Mobile Apps – Techtic Solutions
Advantages of Mobile Apps – Techtic SolutionsTechtic Solutions
 
Design Thinking Myths - Techtic Solutions
Design Thinking Myths - Techtic SolutionsDesign Thinking Myths - Techtic Solutions
Design Thinking Myths - Techtic SolutionsTechtic Solutions
 
Why should you Develop Mockups? - Techtic Solutions
Why should you Develop Mockups? - Techtic SolutionsWhy should you Develop Mockups? - Techtic Solutions
Why should you Develop Mockups? - Techtic SolutionsTechtic Solutions
 
Best Laravel Eloquent Tips and Tricks
Best Laravel Eloquent Tips and TricksBest Laravel Eloquent Tips and Tricks
Best Laravel Eloquent Tips and TricksTechtic Solutions
 
6 Best Project Management Tools Comparison: Jira vs. Trello vs. MS Project vs...
6 Best Project Management Tools Comparison: Jira vs. Trello vs. MS Project vs...6 Best Project Management Tools Comparison: Jira vs. Trello vs. MS Project vs...
6 Best Project Management Tools Comparison: Jira vs. Trello vs. MS Project vs...Techtic Solutions
 
ReactJS Vs React Native: Understanding Differences, Advantages, Disadvantages
ReactJS Vs React Native: Understanding Differences, Advantages, DisadvantagesReactJS Vs React Native: Understanding Differences, Advantages, Disadvantages
ReactJS Vs React Native: Understanding Differences, Advantages, DisadvantagesTechtic Solutions
 
AngularJS Vs Angular: Understanding the Differences
AngularJS Vs Angular: Understanding the DifferencesAngularJS Vs Angular: Understanding the Differences
AngularJS Vs Angular: Understanding the DifferencesTechtic Solutions
 
The Amazing Features of Android 10
The Amazing Features of Android 10The Amazing Features of Android 10
The Amazing Features of Android 10Techtic Solutions
 

Mehr von Techtic Solutions (20)

8 Factors will Drive Fintech Growth in 2021
8 Factors will Drive Fintech Growth in 20218 Factors will Drive Fintech Growth in 2021
8 Factors will Drive Fintech Growth in 2021
 
Top 12 Advantages of Laravel Framework
Top 12 Advantages of Laravel FrameworkTop 12 Advantages of Laravel Framework
Top 12 Advantages of Laravel Framework
 
10 Common Applications of Artificial Intelligence in Healthcare
10 Common Applications of Artificial Intelligence in Healthcare10 Common Applications of Artificial Intelligence in Healthcare
10 Common Applications of Artificial Intelligence in Healthcare
 
What security measures do we take when working remotely?
What security measures do we take when working remotely?What security measures do we take when working remotely?
What security measures do we take when working remotely?
 
How Techtic Implements Seamless Project Management?
How Techtic Implements Seamless Project Management?How Techtic Implements Seamless Project Management?
How Techtic Implements Seamless Project Management?
 
Facts of Software Development
Facts of Software DevelopmentFacts of Software Development
Facts of Software Development
 
How to Integrate Mobile App with Website?
How to Integrate Mobile App with Website?How to Integrate Mobile App with Website?
How to Integrate Mobile App with Website?
 
10 On-demand App Statistics to look at During COVID-19
10 On-demand App Statistics to look at During COVID-1910 On-demand App Statistics to look at During COVID-19
10 On-demand App Statistics to look at During COVID-19
 
What’s new in Laravel 7.8?
What’s new in Laravel 7.8?What’s new in Laravel 7.8?
What’s new in Laravel 7.8?
 
Laravel Vs Django, Which Backend Framework is better?
Laravel Vs Django, Which Backend Framework is better?Laravel Vs Django, Which Backend Framework is better?
Laravel Vs Django, Which Backend Framework is better?
 
Differences between Mobile Apps and Websites – Techtic Solutions
Differences between Mobile Apps and Websites – Techtic SolutionsDifferences between Mobile Apps and Websites – Techtic Solutions
Differences between Mobile Apps and Websites – Techtic Solutions
 
How to Integrate Mobile App with Website? – Techtic Solutions
How to Integrate Mobile App with Website? – Techtic SolutionsHow to Integrate Mobile App with Website? – Techtic Solutions
How to Integrate Mobile App with Website? – Techtic Solutions
 
Advantages of Mobile Apps – Techtic Solutions
Advantages of Mobile Apps – Techtic SolutionsAdvantages of Mobile Apps – Techtic Solutions
Advantages of Mobile Apps – Techtic Solutions
 
Design Thinking Myths - Techtic Solutions
Design Thinking Myths - Techtic SolutionsDesign Thinking Myths - Techtic Solutions
Design Thinking Myths - Techtic Solutions
 
Why should you Develop Mockups? - Techtic Solutions
Why should you Develop Mockups? - Techtic SolutionsWhy should you Develop Mockups? - Techtic Solutions
Why should you Develop Mockups? - Techtic Solutions
 
Best Laravel Eloquent Tips and Tricks
Best Laravel Eloquent Tips and TricksBest Laravel Eloquent Tips and Tricks
Best Laravel Eloquent Tips and Tricks
 
6 Best Project Management Tools Comparison: Jira vs. Trello vs. MS Project vs...
6 Best Project Management Tools Comparison: Jira vs. Trello vs. MS Project vs...6 Best Project Management Tools Comparison: Jira vs. Trello vs. MS Project vs...
6 Best Project Management Tools Comparison: Jira vs. Trello vs. MS Project vs...
 
ReactJS Vs React Native: Understanding Differences, Advantages, Disadvantages
ReactJS Vs React Native: Understanding Differences, Advantages, DisadvantagesReactJS Vs React Native: Understanding Differences, Advantages, Disadvantages
ReactJS Vs React Native: Understanding Differences, Advantages, Disadvantages
 
AngularJS Vs Angular: Understanding the Differences
AngularJS Vs Angular: Understanding the DifferencesAngularJS Vs Angular: Understanding the Differences
AngularJS Vs Angular: Understanding the Differences
 
The Amazing Features of Android 10
The Amazing Features of Android 10The Amazing Features of Android 10
The Amazing Features of Android 10
 

Kürzlich hochgeladen

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate AgentsRyan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate AgentsRyan Mahoney
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????blackmambaettijean
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 

Kürzlich hochgeladen (20)

Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate AgentsRyan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 

Top 10 Key Features of Laravel 5.8

  • 1. www.techtic.com | info@techtic.com New Features of Laravel 5.8
  • 2. www.techtic.com | info@techtic.com List of laravel 5.8 Features • Automatic Policy Resolution • Update Cache TTL • Support Carbon 2.0 • HasOneThrough Eloquent Relationship • Token Guard Token Hashing • Scheduler timezone Configuration • Artisan Call Improvements • Artisan Serve Improvements • Mock Testing Helper Methods • Higher Order orWhere Eloquent Method
  • 3. www.techtic.com | info@techtic.com Features of laravel 5.8 Automatic Policy Resolution First up on the agenda is automatic policy discovery. In past versions of Laravel, each time a policy class is generated, you'd need to visit our AuthServiceProvider to manually wire it up with the appropriate model. It's not the end of the world, but still nonetheless a bit tedious. Now in Laravel 5.8, as long as you follow the standard naming convention, this policy discovery happens automatically. Update Cache TTL A small, but important breaking change in Laravel 5.8 is the switch from minutes to seconds for all cache TTLs. In your codebase, track down any reference to cache()- >put(), cache()->remember(), or any other variants, and do the necessary math to convert the expiration date from minutes to seconds (multiply by 60).
  • 4. www.techtic.com | info@techtic.com Features of laravel 5.8 Support Carbon 2.0 Carbon is a package that extends PHP’s own DateTime class and makes working with dates and time very easy. Laravel 5.8 provides support for the 2.0 release of Carbon. Among the new features of Carbon 2.0 is the CarbonImmutable class and a new Date facade. HasOneThrough Eloquent Relationship Previously to get a supplier’s account history, you will have to find the supplier then write something like: $supplier->account->accountHistory. Now you may use a hasOneThrough relationship to skip this step, accessing a supplier’s account history straight away like this: $history = $supplier->accountHistory through the account model
  • 5. www.techtic.com | info@techtic.com Features of laravel 5.8 Token Guard Token Hashing There is a simpler token guard which provides basic API authentication and in Laravel 5.8 it now supports storing tokens as SHA-256 hashes. This provides greater security over storing plain-text tokens. Scheduler timezone Configuration In previous releases, you have to repeat this for every scheduled task and this can quickly become cumbersome if you have many of them. In Laravel 5.8 you can just define a method called scheduledTimezone in your app/Console/kernel.php file and return your default timezone.
  • 6. www.techtic.com | info@techtic.com Features of laravel 5.8 Artisan Call Improvements Laravel allows you to make Artisan commands from your code using the Artisan::call method. Artisan Serve Improvements A way to quickly serve your Laravel application is by running the command php artisan serve. In previous versions of Laravel this command will run your application in a default port of 8000 and if you attempt to serve another application with the same command, this would fail. Now in version 5.8 the servecommand will scan for available ports up to port 8009 so you can serve multiple applications at once.
  • 7. www.techtic.com | info@techtic.com Features of laravel 5.8 Mock Testing Helper Methods When preparing your tests, you'll need to mock a class, set an expectation, and then update the related instance in Laravel's service container with your mocked version. Laravel 5.8 now ships with two testing helpers to simplify this setup a good bit: $this->mock() and $this->spy(). Higher Order orWhere Eloquent Method Laravel 5.8 introduces a “higher order” orWhere method, so you don’t need to write the above closure anymore.
  • 8. www.techtic.com | info@techtic.com Techtic Solutions, Inc. is one of the most trusted Laravel development company with 10+ years of web development experience. Our team of experienced Laravel developers are adept at building simple to the most complex website apps seamlessly using Laravel PHP frameworks. Our clients swear by the codes we write – they are simple, expressive and scalable. We help build sophisticated websites that help maximize ROI for your business. We leverage the robust features and dynamic functionality of Laravel to deliver superior experience to your customers. About Techtic Solutions Our Services: Custom Laravel Web Development Laravel CMS development Laravel Application Development Laravel Ecommerce Development Laravel Enterprise Solution Laravel Customization Laravel Theme/Template Design Laravel Plugin Development Laravel REST API Development Laravel Support & Maintenance
  • 9. Contact Us Visit us: https://www.techtic.com Email: info@techtic.com Phone: +1 201.793.8324