Top 10 Key Features of Laravel 5.8 - PowerPoint PPT Presentation

About This Presentation
Title:

Top 10 Key Features of Laravel 5.8

Description:

Techtic Solutions Inc is listed top key features of latest version of Laravel 5.8. If you want to develop a website with Laravel framework than Techtic is one of the most trusted Laravel development company with 10+ years of web development experience. Our teams has experienced Laravel developers who are adept at building simple to the most complex website apps seamlessly using Laravel PHP frameworks. For more info. Call us +1 201.793.8324 or visit us – PowerPoint PPT presentation

Number of Views:43
Slides: 10
Provided by: TechticSolu
Category: Other

less

Transcript and Presenter's Notes

Title: Top 10 Key Features of Laravel 5.8


1
New Features of Laravel 5.8
www.techtic.com info_at_techtic.com
2
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_at_techtic.com
3
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()-gtput(), cache()-gtremember(),
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_at_techtic.com
4
Features of laravel 5.8
Support Carbon 2.0
Carbon is a package that extends PHPs
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 clas
s and a new Date facade.
HasOneThrough Eloquent Relationship
Previously to get a suppliers account history,
you will have to find the supplier then write
something like supplier-gtaccount-gtaccountHistory
. Now you may use a hasOneThrough relationship to
skip this step, accessing a suppliers account
history straight away like this history  suppl
ier-gtaccountHistory through the account model
www.techtic.com info_at_techtic.com
5
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/kerne
l.php file and return your default timezone. 
www.techtic.com info_at_techtic.com
6
Features of laravel 5.8
Artisan Call Improvements
Laravel allows you to make Artisan commands from
your code using the Artisancall 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_at_techtic.com
7
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-gtmock() and this-gtspy().
Higher Order orWhere Eloquent Method
Laravel 5.8 introduces a higher
order orWhere method, so you dont need to write
the above closure anymore. 
www.techtic.com info_at_techtic.com
8
About Techtic Solutions
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.
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
www.techtic.com info_at_techtic.com
9
Contact Us
Visit us https//www.techtic.com Email
info_at_techtic.com Phone 1 201.793.8324
Write a Comment
User Comments (0)
About PowerShow.com