Recent Posts

Posted in Solutions

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…

Continue Reading
Posted in Laravel

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…

Continue Reading
Posted in Laravel

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…

Continue Reading
Posted in Laravel

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”…

Continue Reading
Posted in Solutions

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.

Continue Reading
Posted in Laravel

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) {…

Continue Reading
Posted in Laravel

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…

Continue Reading
Posted in Laravel

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…

Continue Reading
Posted in Laravel

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…

Continue Reading
Posted in Blog

Be careful when using Facebook! Photos uploaded to Couple Challenge appeared on the porn sites

Under the recently launched Couple Challenge on the popular social network Facebook, photos uploaded by users with their partners have started appearing on various porn…

Continue Reading