Tag : Solve


Laravel 5.3 - Call to undefined method Illuminate\Database\Query\Builder::lists() Solved

Today i want to tell you about error "Call to undefined method Illuminate\Database\Query\Builder::lists()" and how to solve this error in Laravel 5.3. When i was working on my Laravel 5.3 application, at that time i require to get lists of email and id of users table for select drop-down. But when i use lists() with DB table i found error "Call to undefined method Illuminate\Database\Query\Builder::lists()". Error was like bellow preview: <pre> BadMethodCallException in Builder.php line 2440: Call to undefined method <br/> Illuminate\Database\Query\Builder::lists() </pre> I did search a lo.....

By Hardik Savani | September 24, 2016 | | 1555 Viewer | Category : Laravel
READ MORE

Solved - Access Not Configured. Google+ API (truncated...) on google console developer

When i was working on my Laravel 5.3 application with socialite google API. I fetched one issue when redirect on my application. I had successfully created my project on google console with site URL and redirect back URL too. But when it was redirect back on path i found one error like "403 Forbidden - Access Not Configured. Google+ API (truncated...)". I did try my self but i can't solve this error. It was always return error on my screen like this way: <strong>"ClientException in RequestException.php line 107: Client error: `GET https://www.googleapis.com/plus/v1/people/me?prettyPrint=fal.....

By Hardik Savani | September 13, 2016 | | 1336 Viewer | Category : PHP Laravel Installation Codeigniter Google API
READ MORE

How to git ignore file permissions changes for commit?

When i was working on my PHP Laravel project and i clone project from git repository. I just composer install and then change storage folder permission. then i just run bellow command: <pre> git status </pre> I found list files of storage folder even i didn't changes on that file. I was thinking why there are several files on git status. But i understand this is because of permissions. I search google and other, at last i found bellow command that way we can ignore or remove or undo file permissions changes from git status. So, you can run bellow command in your repo. <pre class="prettyprint .....

By Hardik Savani | September 1, 2016 | | 401 Viewer | Category : Git
READ MORE

Solve - Installation request for guzzle/guzzle in laravel

When i was working on my updated ubuntu version, i did fetch this problem. I had ubuntu 14.04 then i updated ubuntu 16.04, at that time i think PHP version also updated PHP 5 from PHP 7. Ubuntu 16 updated successfully but when i was trying to composer install or update on my project i was found guzzle package error and to enable extensions php 7 extensions as like bellow: <strong>Error</strong> <pre> Problem 1 - Installation request for guzzle/guzzle v3.8.1 -> satisfiable by guzzle/guzzle[v3.8.1]. - guzzle/guzzle v3.8.1 requires ext-curl * -> the requested PHP extension curl is missing from .....

By Hardik Savani | August 15, 2016 | | 950 Viewer | Category : Laravel Ubuntu
READ MORE

Solved - opencart this merchant is not enabled for auth/settle

When i was learning opencart and i was trying to setup paypal integration with sand box then i fetch one error. Every thing was working proper but when i try to pay money i found error like as bellow: <pre> this merchant is not enabled for auth/settle </pre> I did also try to change my buyer account and try but same, I also did try with different way but same result. At last i found that i used <strong class="path">Personal</strong> account on opencart module setting, we require to use <strong class="path">Business</strong> Account. So when you create new user then select Business in account.....

By Hardik Savani | July 25, 2016 | | 635 Viewer | Category : PHP Opencart
READ MORE

Solved - fatal: Failed to connect to bitbucket.org port 443: Network is unreachable

When i was working on my project repository i found error "fatal: unable to access 'myrepo' Failed to connect to bitbucket.org port 443: Network is unreachable" few day ago. when i going to just git pull command i found error like as bellow: <pre> fatal: unable to access 'https://hardik@bitbucket.org/hardik/setup_backend.git/': Failed to connect to bitbucket.org port 443: Network is unreachable </pre> But i try to solve it but nothing, at last i found solution i was use <strong class="path">HTTPS</strong> for clone repo. But i need use <strong class="path">SSH</strong> for git repo. So i chan.....

By Hardik Savani | July 21, 2016 | | 2810 Viewer | Category : Git Bitbucket
READ MORE

Laravel tokenmismatchexception in verifycsrftoken.php - Solved

When i had started to learn laravel, i found error - tokenmismatchexception in verifycsrftoken.php when submit form POST method. I was new i can't understand what is the error. but i read docs and search google i found that i need to add laravel csrf_token as hidden parameter. csrf_token() is for security reason, Laravel use Middleware VerifyCsrfToken to check csrf token is valid or not, so you have to just add bellow line in your form: <pre> <input type="hidden" name="_token" value="{{{ csrf_token() }}}" /> </pre>

By Hardik Savani | July 10, 2016 | | 837 Viewer | Category : Laravel
READ MORE

How to solve - This cache store does not support tagging?

When i was working on ACL module for my project, i fetch error like : This cache store does not support tagging, if you use zizaco/entrust package for ACL and you fetch this error then you have to set array as cache driver, so open .evn file and change CACHE_DRIVER value this way: <strong>.env</strong> <pre class="prettyprint lang-php"> CACHE_DRIVER=array </pre>

By Hardik Savani | July 3, 2016 | | 4964 Viewer | Category : Laravel
READ MORE

How to set multiple selected value in Chosen Jquery Plugin?

If you require to set selected value in Chosen Jquery Plugin then you can done using val() with trigger(). Some days ago, i had worked my php project i needed to set selected value wiht chosen and also multiple selected value both. After some try i found how to do with if set single selected value using val(). But i was confuse with dropdown multiple selected value, but at last i found how to give value, we have to just pass array in val(). As bellow i mention both way how could done. <strong>Set Single Value:</strong> <pre class="prettyprint lang-php"> var my_val = 3; <br/> $("#set-corsi")......

By Hardik Savani | July 1, 2016 | | 852 Viewer | Category : Javascript jQuery Chosen JS
READ MORE

Solve - fatal: Unable to create '/myproject/.git/index.lock': File exi

When i was working on my laravel 5 application, i did all the changes i did but when i had gone for push then i found this fatal error. It's not able to create index.lock file in .git folder. I also give full permission to .git folder and also try to remove direct index.lock file from .git directory but same error like as bellow. <strong>Error</strong> <pre> fatal: Unable to create '/var/www/me/theme_backend/.git/index.lock': File exists. </pre> But at last i found how can i resolve this problem, just run bellow command and it will work. <pre class="prettyprint lang-php"> rm -f ./.git/index.....

By Hardik Savani | June 29, 2016 | | 321 Viewer | Category : Git
READ MORE

    Bootstrap - Input multiple tags example using Tag Manager Jquery Plugin

    Bootstrap - Input multiple tags example using Tag Manager Jquery Plugin

    Open Post

    How to create authentication(login and registration) in Laravel 5.2?

    How to create authentication(login and registration) in Laravel 5.2?

    Open Post

    How to connect mysql database in node js with example?

    How to connect mysql database in node js with example?

    Open Post

    Laravel 5 - Dynamic Dependant Select Box using JQuery Ajax Example - Part 1

    Laravel 5 - Dynamic Dependant Select Box using JQuery Ajax Example - Part 1

    Open Post

    Laravel 5 Instagram API tutorial with example

    Laravel 5 Instagram API tutorial with example

    Open Post

    PHP - multiple file uploading dropzone js example

    PHP - multiple file uploading dropzone js example

    Open Post