-
Notifications
You must be signed in to change notification settings - Fork 24.4k
[Maybe BUG] Laravel 5 softDeletes Model cause blank white page response if table don't have deleted_at column #3514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Fixed 5.1 installation
Use "for" attribute on labels in auth views
support for unencrypted mail server usage like mailcatcher.me
Newline on .env.example
Sorted by alphabetic.
Sorted by alphabetic.
Ignore Homestead.json
Bump Laravel Elixir version
Error message for JSON validation
Ensure the default views always use HTTPS for the loading of fonts. This is overall a good practise to follow.
Use https rather than // for google fonts in default views.
Applied fixes from StyleCI
According to the docs, the sqlite database should be located within the "database" folder.
Replace storage_path with database_path helper
Signed-off-by: crynobone <crynobone@gmail.com>
[5.1] Use $this instead of parent.
Don't use softDeletes in your model, and Laravel will know not to look On 06/10/2015 10:26, Dark Cyber wrote:
|
Hi,
My
Options
table containid, name, value, autoload
columns.My
routes.php
Here is my
SettingsController.php
Here is my
Option.php
modelIf I visit
myproject.dev/settings
it will give me blank white page without any error, try to delete views cache at storage folder didn't work.Try with artisan tinker give me some idea
It give me
Illuminate\Database\QueryException with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'coeg_options.deleted_at' in 'where clause' (SQL: select * from
coeg_optionswhere
coeg_options.
deleted_atis null)
Then I add
deleted_at
column at my table, finally it work and I didn't get blank white pages anymore.Maybe will be good if Laravel check
deleted_at
column for model which useSoftDeletes
and throw an error ifdeleted_at
column not found, just like artisan tinker error above.