Customizing additional parameters in FirstOrCreate in Laravel 5.3
Explains how to use the enhanced firstOrCreate method in Laravel 5.3 to customize attributes when creating new database records.
mattstauffer.com is the personal blog of Matt Stauffer, a web developer, author, and educator specializing in Laravel, PHP, and full-stack web development. Matt shares tutorials, insights, and resources on modern web development, covering topics like backend development, JavaScript, and Laravel best practices. He is also the author of Laravel: Up & Running and a host of the Laravel Podcast. Through his blog, Matt provides practical advice for developers, project management tips, and insights into maintaining a productive development workflow. His content is designed to help developers of all levels improve their skills and stay updated with the latest trends in the web development industry.
176 Articles from this blog
Explains how to use the enhanced firstOrCreate method in Laravel 5.3 to customize attributes when creating new database records.
Explains the new $loop variable in Laravel 5.3's Blade templates, detailing its properties and usage in loops.
An in-depth guide to Laravel Echo, a tool for simplifying WebSockets integration in Laravel applications for real-time features.
A developer shares surprising Laravel features and techniques discovered while writing the book 'Laravel: Up and Running'.
The author explains their decision to publish their book 'Laravel: Up and Running' with O'Reilly instead of self-publishing.
A guide on migrating from Mandrill to SparkPost for transactional emails in a Laravel application, including setup and configuration.
A tutorial on setting up and using Vue-router to create single-page applications with the Vue.js framework.
A tutorial on integrating Vueify, ES2015, and Browserify into Vue.js projects using Laravel Elixir for simplified build processes.
A tutorial on building a password-less login system in Laravel using email-only authentication, where users receive a login link.
A guide on using git cherry-pick to selectively merge specific commits from a pull request while maintaining author attribution.
Explains how to configure MySQL strict mode and custom SQL modes in Laravel 5.2, enabling or disabling it via database configuration.
A developer asks for community help on several open-source projects due to increased time constraints from other work.
A first look at Statamic v2 beta, a flat-file CMS built on the Laravel PHP framework, from the developers at Tighten.
Explains how to use multiple authentication guards, including API tokens, in Laravel 5.2 for web and stateless API routes.
An overview of the new `make:auth` artisan command and authentication scaffolding features introduced in Laravel 5.2.
Guide to disabling MySQL strict mode on Laravel Forge/Ubuntu servers to fix application compatibility issues.
Explains Laravel 5.2's middleware groups feature for simplifying route middleware management.
Explains how to implement API rate limiting using the new 'throttle' middleware in Laravel 5.2, including header responses.
Explains the new implicit route model binding feature in Laravel 5.2, which simplifies linking URL parameters to Eloquent models.
Explains how to validate HTML form arrays in Laravel 5.2, using a company/employee form example.