Laravel is known to be a secure PHP framework for creating websites and applications. Those with a need for high levels of protection often choose Laravel. We will review the key Laravel security features that will help you keep your website and business safe. You might also like: Ultimate PHP Security Best Practices Laravel Security Features Laravel’s security feature ensures that developers can now use virtually every aspect of the process safely. Furthermore, all the
Introduction: PHP laravel introduce new version laravel 5.8 with new features. laravel 5.8 is released now and available for all. laravel 5.8 added new feature like cache TTL changes and lock, Deprecate string and array helper methods, update email validation, Automatic Policy Resolution, PHP dotenv, added firstWhere function in collection, database mysql json value etc. As always, before upgrading a Laravel version, be sure to carefully read and understand the upgrade guides&nbs
Certain tasks within Laravel’s Eloquent ORM can become very repetitive and tedious within larger applications.There’s a lot of semi-hidden functions and less-known ways to achieve more with it. In this article, I will show you a few tricks. Increments and Decrements Instead of this: $article = Article :: find ( $article_id ) ; $article-> read_count++ ; $article-> save ( ) ; You can do this: $article&
The Laravel team released Laravel 5.7.26 on 12 Feb 2019 with a new pipeline method and a method to temporarily bypass model events. First, a new Pipeline method thenReturn was added by Tim MacDonald to allow additional work do be done on the object passed through: // Priviously $users = app ( Pipeline : : class ) ->send ( User : : query ( ) ) ->through ( $pipes ) ->then ( function ( $query ) { return 
The Laravel team and contributors released Laravel v5.7.23 on 29th Jan 2019, along with a fix release for the ResetPassword notification in v5.7.24. The bulk of the new changes are in v5.7.23: First, the AbstractPaginator::getOptions() was added to retrieve the original paginator options which are now stored in an $options property. Next, an orWhere proxy method was added for scopes in the EloquentBuilder, with a new class introduced to&nb
Laravel 5.7.17 is accessible with new query builder methods, a new message for detecting lost connections in MariaDB, and improvements to adding foreign keys in Postgres. First, we have a new method in the query builder for the INSERT INTO SELECT statement, without loading data into memory. The insertUsing() method allows you to copy all (or some) columns from one database table to another using the following syntax: $builder-> from ( ' table1
Laravel 5.7.13 was released on 7th Nov 2018 with some new collection methods and the ability to return an array of messages in a custom validation rule. First, new empty collection methods were added, including whenEmpty, whenNotEmpty, unlessEmpty, and unlessNotEmpty. For example, the whenEmpty method will fire this callback on an empty collection: use Illuminate\Support\Collection ; $collection =