PHP: 3 Ways to Get N Random Elements from an Array
Overview Getting random elements from an array is a common task in many PHP applications. Whether you’re building a quiz app that selects random questions, implementing a feature…
PHP: Find and download photos by keyword from Unsplash API
Introduction In this tutorial, we’ll dive into how to use the Unsplash API with PHP to search for photos by keyword and download them. Unsplash provides high-quality free…
Laravel + Faker: Generate user with email and gender based on name
Introduction When developing applications, especially in the testing phase, there’s often a need for generating dummy data. Laravel, a robust PHP framework, provides seamless integration with Faker, a…
Laravel: Rendering CSV data in an HTML table
Overview In this tutorial, we will explore how to render CSV data within an HTML table using Laravel, a popular PHP framework known for its simplicity and elegance…
i18n in Laravel: A Practical Guide (with Examples)
Introduction Laravel, a powerful MVC PHP framework, is known for its ease of use and flexibility, especially when it comes to building scalable and maintainable web applications. Internationalization…
Laravel: Generating sample users with passwords using Faker
Introduction When building web applications, having sample data for testing and presentation can be invaluable. Laravel, a popular PHP framework for web development, provides an elegant solution to…
Laravel: How to create custom Faker providers
Introduction When working with test data in Laravel, the Faker library is an invaluable tool for generating a wide variety of mock data for your application. However, there…
Laravel & Eloquent: Seeding a CSV file into a MySQL database
Overview In this tutorial, we will explore how to seed a CSV file into a MySQL database using Laravel, a popular PHP framework well-known for its elegant syntax…
Laravel: Using Faker to Seed Sample Data (for Testing & Practice)
Introduction When working on a Laravel application, populating your database with realistic sample data is invaluable for testing and development. One of the most elegant and convenient ways…
Laravel + Blade: How to Render Array Data with Tables
Introduction In this comprehensive guide, we will explore how to efficiently render array data within tables using Laravel, a prominent PHP framework, and its templating engine, Blade. Laravel…