I don't remember doing anything out of the ordinary, but I suddenly realised a boolean column in my database (which I created with $table->boolean('isOnline')->nullable(); method) stores true or false as "on" text, not 1.
When I search for ->where('isPublic', true)->get , it finds nothing.
Have I missed something?
what database type are you using? If MySQLm double check your column type... you must have done something wrong because boolean()
creates a tinyint(1)
Ok thanks. Then it is maybe related to SQLite? Because I did indeed create a boolean.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community