[Problem:] While adding new column to the table by alter method, I used this sql code ALTER TABLE investments ADD bank TEXT; ERROR 1067 (42000): Invalid default value for 'created_at' But An eeror came thought I tried various data type ERROR 1067 (42000): Invalid default value for 'created_at' [solution] The problem in my database is current mode is in the sql_mode SO, in the sql I typed and hit the commend set global sql_mode = 'ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'; and it solved the problem.
First of all make a new migration php artisan make:migration add_mobile_to_userinfo 2. put this code in up() function public function…
1. Open and edit php.ini file. You can find inside xampp/php 2) Search and find memory_limit (control+F) 3) change this…
It is a bit tricky to pass all the values to the view from the model in laravel. First of…
[Q] I am using laravel and while deleting a file in laravel It got error while code is live but…
Under the recently launched Couple Challenge on the popular social network Facebook, photos uploaded by users with their partners have…
Hey guys, I tried hard to solve a problem of lazy mouse fridging problem. I tried some ideas found in…
How To Add Facebook Message Box in Your Website? https://youtu.be/x4eZOfHtR3g How To Add Facebook Message Box in Your Website?
I accidentally deleted a folder in a desktop which I came to know was very useful to me. I searched…
It is sometimes necessary to send data or an array to all the views sometimes. but this is the rare…