Category Archives: Laravel

Error:Laravel 5.2-Column not found: 1054 Unknown column ‘remember_token’ in ‘field list

In the logout section of the code in laravel shows the below error QueryException in Connection.php line 673: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘remember_token’ in ‘field list’ (SQL: update tbl_super_admin set remember_token = nBK3H2JLcwS8lkcUudaGXIVWseSyqhZ0dsTJdl5TkXL3y8gNgqv2dkaZPd0c, updated_at = 2017-03-29 13:39:45 where id = 1) Solution: add remember_token,updated_at fields in the user table.its mandatory field in… Read More »

Validating a Domain using Laravel-domain validation using laravel

How to validate a domain name using laravel and ajax.if we enter a domain name(Eg:http://test.com) through ajax call we will validate the domain Below are the routes,controller,model,view files routes.php- in the latest version laravel web.php

controller-Welcomeontroller.php

views file-urlvalidation/urlvalidation.blade.php

Automatic dropdown box loading using Laravel and Jquery/Ajax

Automatic dropdown box loading using Laravel and Jquery/Ajax Below are the files required for dropdown box loading based on another dropdown selection.Here if we select one country dropdown, then state dropdown will load automaticaly. Routes,Models,view,controller files are listed below Routes.php

view file will be in the resource folder views/dropdown/drodown.blade.php

here i used the… Read More »

File Download script in laravel-Zip File creation and download ?Using Laravel

Here i m using the zipper class for creating zip file.Used one controller and viewblade as below Somecontroller.php

someviewblade.php

SSL error in the stripe payment in Laravel-RequestException in CurlFactory.php line 187: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

paste cacert.pem file into php folder and add the below line in the php.ini and restart server. [XDebug] ;zend_extension = “C:\xampp\php\ext\php_xdebug.dll” ;xdebug.profiler_append = 0 ;xdebug.profiler_enable = 1 ;xdebug.profiler_enable_trigger = 0 ;xdebug.profiler_output_dir = “C:\xampp\tmp” ;xdebug.profiler_output_name = “cachegrind.out.%t-%s” ;xdebug.remote_enable = 0 ;xdebug.remote_handler = “dbgp” ;xdebug.remote_host = “127.0.0.1” ;xdebug.trace_output_dir = “C:\xampp\tmp” curl.cainfo = “C:/xampp/php/cacert.pem”

Unlink function not works in laravel after creating a zip file

I m using a package called zipper in laravel to create zip files. Files are stored in a folder and filenames in the db table. after creating zip files , the remaining files i have to delete from the folder.But while using the below code unlink/File::delete() was not working. code looks like as below

Read More »

Bulk Insertion in Laravel using eloquent ORM

Inserting 100 records into a table inside a loop.I have database table called emp_table with 100 employees records if you want to insert this records into a new table called salary_table in this cas see how the batch insert works in laravel