Comments (4)
Shouldn't it be Post::create(['title' => 'Laravel', 'approved_at' => null]);
if your field is nullable
from framework.
Shouldn't it be
Post::create(['title' => 'Laravel', 'approved_at' => null]);
if your field is nullable
Using Livewire for example, if you set a date on the standard html datepicker and then clear it, then an empty string is passed instead of null.
I don't know what happens with just regular blade code, didn't try it.
from framework.
If you use the validator with nullable rule and retrieve the validated fields that should convert empty strings to null
from framework.
Already did that, no difference.
from framework.
Related Issues (20)
- Str::trim changed Behavior HOT 4
- Inconsistent Model checks on find() methods throughout the framework HOT 2
- Improper option parsing for scheduled commands with options. HOT 1
- Bulk dispatching jobs onto the DatabaseQueue does not trigger jobs HOT 1
- __toString() method causes conversion error in Illuminate\Validation HOT 1
- $this->replace() removes models injected to the request by custom middlewares HOT 2
- EventServiceProvider Bug when upgrading a Laravel 10 to Laravel 11 using the new Application Structure (as a result of Laravel Shift) HOT 4
- Horizon does not honor maxProcesses = 0, instead it uses 1 process HOT 1
- Style issue on laravel docs.
- SQL Server connection fails when serving app using octane under frankenPHP HOT 1
- `\Illuminate\Database\Eloquent\Concerns\PreventsCircularRecursion::withoutRecursion()` method crashes on mocked models HOT 2
- Unexpected behavior HOT 1
- Redirect `withErrors` cannot be tested with `assertSessionHasErrors` HOT 2
- Related model uses parent connection when `$connection` is `null`
- Config attribute throws a Illuminate\Contracts\Container\BindingResolutionException if the set value is NULL
- Artisan::queue does not support the functionality of queued jobs
- Array offset error when using the Concurrency facade HOT 2
- No automatic database reconnect on "Operation now in progress" query error HOT 5
- Call to undefined method Laravel\Lumen\Application::routesAreCached()
- proc_open(): posix_spawn() failed error with the Concurrency facade HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from framework.