Seeding right after migrating is commonly used to fill tables with initial data. In this guide we'll learn 2 ways to seed a table with project statuses.
Category: Database
In this tutorial, you'll learn to use WHERE LIKE in Laravel Eloquent in an example application. We'll create a model, migration and seeder and search using LIKE
How to Encrypt and Decrypt Model Data Using Casts in Laravel
In this guide you'll learn how to use the 'encrypted' cast in your Eloquent Models to auto encrypt and decrypt sensitive data and ensure it is stored securely.
In this guide, we'll create a 'Car' model + migration with a JSON column, seed some test data and search through the JSON data using Laravel Eloquent queries.
In this guide, we'll be seeding multiple rows at once into a "products" table by using a model, factory and seeder in conjunction.
In this tutorial, we'll explore Laravel's global scope in a practical example. We will use a global scope to ensure we only retrieve posts that are published.