Author: jaminrai
KMS Activator Free windows and Office Activation
KMSPico Window 10 activator is the free activator of windows 10 and previous version developed by a team of hacker Team Daz. It is free…
ERROR: Invalid default value for ‘created_at’ [solution]
I got a problem while adding a new column in the database as well as editing the column. The error says invalid default value for…
HOW TO CHECK VERSION OF LARAVEL
1. by command line method open command prompt and go to the laravel application directory. type php artisan –version 2. By checking laravel file…
LARAVEL PROBLEM IMAGE NOT UPLOAD PROBLEM (THE SAME PROBLEM WORKED IN LOCALHOST)
Problem Description: I have recently created a site in laravel and I had the no issue. But when I uploaded the script in the live…
Problem in composer create-project
To start a new project in laravel we generally do the following code composer create-project –prefer-dist laravel/laravel projectname OR composer create-project –prefer-dist laravel/laravel projectname “version_of_laravel”…
How to solve Invalid default value for ‘created_at’ while adding new column in database.
[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.
HOW TO ADD A NEW COLUMN TO EXISTING DATABASE [LARAVEL]
First of all make a new migration php artisan make:migration add_mobile_to_userinfo 2. put this code in up() function public function up() { Schema::table(‘users’, function($table) {…
Allowed memory size of ~ bytes exhausted in Laravel issue in laravel [solved]
1. Open and edit php.ini file. You can find inside xampp/php 2) Search and find memory_limit (control+F) 3) change this memory limit memory_limit=512M 4) To…
How to Pass Value from Model to all the views in Laravel ? with video
It is a bit tricky to pass all the values to the view from the model in laravel. First of all, make controllers and model…
Cant Delete File in Laravel? [SOLUTION]
[Q] I am using laravel and while deleting a file in laravel It got error while code is live but worked fine in localhost. Error…