Laravel Collections Search Method Tutorial With Example is today’s topic. Laravel search method is used to search the collection for a given value. If the value is present in the collection, the key of the value is returned. If the value does not match any item, false is returned. If you are not familiar with Laravel Collections,… (0 comment)

Laravel Collections Filter Method Tutorial With Example is today’s topic. If you are not familiar with Laravel Collections, then check out my Laravel Collections Tutorial guide. Laravel Eloquent uses Collections to return the results. Collections contain useful methods that make them very powerful and helpful to use. You can filter them, modify them and much… (0 comment)

Laravel Model Factories Tutorial With Example | Laravel 5.8 Seeding is today’s topic. Generating fake data manually for each model seed is cumbersome. Instead, you can use model factories to generate large amounts of database records conveniently. Laravel has feature called model factories that allows us to generate fake data. It is beneficial for testing… (0 comment)

Laravel Eloquent Collection Tutorial With Example is today’s topic. The Eloquent collection object extends the Laravel base collection, so it naturally inherits the dozens of methods used to work with an underlying array of Eloquent models fluently. All multi-result sets returned by Eloquent are instances of an IlluminateDatabaseEloquentCollection object, including results retrieved via the get method or… (0 comment)

Laravel Collections Tutorial With Example is today’s topic. The IlluminateSupportCollection class provides a convenient wrapper for working with PHP arrays of data. Laravel Collection class allows us to chain its methods to perform fluent mapping and reducing of the underlying array. In general, Laravel collections are immutable, meaning every Collection method returns an entirely new Collection instance. Laravel… (0 comment)

Laravel 5.8 Form Validation Tutorial With Example is today’s topic. Laravel  Framework provides many different approaches to validate your application’s form data. By default, Laravel’s base controller class uses the ValidateRequests trait which provides the convenient method to validate incoming HTTP request with a variety of powerful validation rules. We can use the Validation differently… (0 comment)