Summernote Image Upload with Laravel

It is a big issue to upload image by using Summernote editor . Sometimes you need  to upload multiple image by using laravel summernote editor. By using this code you can save your image in database avoiding base64 format . It can save your image in database just like as a hyperlink of image folder. After having many google search , i just want to try to make easy and compatible solution . Just follw that ....   Editor Form Code ..... <div class="form-group"> <!-- Mes...
More

Redirect Non www to www in laravel

Just simply add this code in your .htaccess file and you can find change in your main and sub-domain. RewriteCond %{HTTP_HOST} !^(.*)\.(.*)\. [NC] RewriteCond %{HTTPS}s ^on(s)| RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] N.B : Just fun Happy_Coding :)
More

Laravel send gmail for user activation

This problem can generally occur when you do not enable two step verification for the gmail account you are using to send an email. So first, enable two step verification, you can find plenty of resources for enabling two step verification. After you enable it, then you have to create an app password. And use the app password in your .env file. When you are done with it, your .env file will look something like. MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=&l...
More

Create Multi Databases Connection in laravel

First step - Open your laravel project and at the config/database.php add  and declare new multiple databases under connections array, see this default from laravel installations. 'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', 'localhost'), 'port' => env('DB_PORT', '3306'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PAS...
More

All Artisan Commands in Laravel

laravel
There is all commands used in artisan: ####################### //Remove the compiled class file php artisan clear-compiled   //Put the application into maintenance mode php artisan down   //Display the current framework environment php artisan env   //Displays help for a command php artisan help   //Lists commands php artisan list   //Run the database migrations php artisan migrate   //Optimize the framewor...
More

How to solve cURL error 60: SSL certificate in Laravel 5 while Facebook authenticati

Go to http://curl.haxx.se/ca/cacert.pem and download the pem file and save in your php installation directory ( make sure while saving it retains the extension and not saved as a text file ) Now, open your php.ini file, scroll to the bottom and add the following line: [cURL] curl.cainfo="D:\xampp\php\cacert.pem" Replace D:\xampp\php\cacert.pem with the actual path. In wampserver you can add the curl file in here .... C:\wamp\bin\apache\apache2.4.9\bin\cacert.pem Now its work fi...
More