1. In Laravel 5, How to disable VerifycsrfToken middleware for specific route?

    In Laravel 5 this has changed a bit. Now you can simply add the routes you want to exclude from csrftoken verification, in $except an array of the class 'VerifyCsrfToken' (\app\Http\Middleware\VerifyCsrfToken.php):

    class VerifyCsrfToken extends BaseVerifier { protected $except = [ // Place your URIs here ]; }
    Read more »
  2. laravel csrf_token() is empty in l5-swagger

    csrf_token() is empty in l5-swagger and couldn't do any request.

    I have tried to request it from the postman and it works. but in swagger, it didn't. I have taken a look from this link (Laravel 5 csrf_token value is Empty) but I still have no idea how to solve my problem.

    How can I get the csrf_token inside my l5-swagger view?


     You should try to add this in /routes/web.php

    Route::group(['middleware' => 'web'], function () {
    Read more »
  3. How To Add Banner Ads To Ionic Apps Using AdMob Pro Plugin

    In this post I will show how you can add banner ads to your Ionic apps. I will be doing this on a new app but you can do it to your existing app as well. I have also written a post on adding banner ads to Ionic 2 apps, so if you are looking for Ionic 2 apps You can check that post out as well.


    Step 1)

    We will first start by creating a new Ionic project by issuing the following command in the command prompt

    Read more »
  4. Error: EACCES, permission denied Ionic Cordova IOS

    The error you have received is from NPM (since the Cordova CLI is installed via NPM). This is a tricky issue where using NPM with sudo, and then not using sudo will result in weird permission issues.




    sudo chown -R $USER /usr/local/

    Read more »
  5. Execution failed app:processDebugResources Android Studio

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':CordovaLib:processDebugResources'.
    > org.gradle.process.internal.ExecException: Process 'command '/home/arulmanickam/adt-bundle-linux-x86-20131030/sdk/build-tools/23.0.2/aapt'' finished with non-zero exit value 127



    Solution :

    For me it was that I forgot to install the 32bit dependencies:


    sudo apt-get install -y lib32gcc1 libc6-i386 lib32z1 lib32stdc++6

    sudo apt-get install -y lib32ncurses5 lib32gomp1 lib32z1-dev lib32bz2-dev



    Read more »
  6. Failed to find 'ANDROID_HOME' environment variable

    i have this error when i am trying to build

    [Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually.
    Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.]




    You have permission errors. My guess is that you tried to run the script as root rather than sudo. When running the script you have to run it as your user account using sudo.


    change owner permission all files & folder to your current login user .

    • Your android sdk
    • Your ionic or cordova project files

    dont run as admin or run using sudo

    Read more »
  7. Laravel 5.1 PHP DOMXPath() class not found

    I'm using PHP's built-in DOMXPath() class to do some simple web-scrapping. However, it works on my 4.2 site, but not my 5.1 (both are on same installation of PHP).

    Here's the error:

    Class 'App\Http\Controllers\admin\DOMXPath' not found

     $list1 =newDOMXPath();


    In Laravel 5.1 you must prefix the class name with the global namespace prefix '\'.

    $list1 =new \DOMXPath();
    Read more »
  8. Laravel 5.1 PHP DOMDocument() class not found

    I'm using PHP's built-in DOMDocument() class to do some simple web-scrapping. However, it works on my 4.2 site, but not my 5.1 (both are on same installation of PHP).

    Here's the error:

    Class 'App\Http\Controllers\admin\DOMDocument' not found

     $list1 =new DOMDocument();


    In Laravel 5.1 you must prefix the class name with the global namespace prefix '\'.

    $list1 =new \DOMDocument();
    Read more »
  9. Add Magento Admin User Using MySQL Script

    This script quickly adds a Magento Admin user directly into the database. It is possible to run this script from the command line or by copying and pasting into phpMyAdmin. Just make sure to edit the following fields with your personalized data and import. Most of these fields are trivial, I’m just listing them so you don’t miss anything.

    1. Set the salt portion of your password. You’ll rarely need to change this. If you do, just use two lower case letters of your choice.
    2. Set your password. At least 8 characters in length and at least one digit.
    3. Firstname: Enter admin’s first name.
    4. Lastname: Enter admin’s last name.
    5. Enter email of admin user.
    6. Enter username where ‘myuser’ is set. Notice ‘myuser’ shows up in two places.
    7. Enter Firstname again. This is more symbolic to label the rule.
    Read more »
  10. CRUD operation in PhoneGap application using SQLite Database

    Few days ago I received a comment from one of the reader of my blog to show an example on CRUD (Create, Read, Update and Delete) with the database. So in this post we will explore the use of CRUD operation using SQLite database in PhoneGap application.

    CRUD can be described as a process, which helps the user to add, view, search and modify the information inside the database.

    Here are the basic steps which demonstrates CRUD operation.

    • Create or add new entries
    • Read, retrieve, search or view existing entries
    • Update, modify or edit existing entries
    • Delete, deactivate or destroy existing entries

    Before doing any operation on database let’s initialize the database first, either using HTML5 local database concept or using SQLite plugin.

    Let’s add the following javascript to initilze the

    Read more »
Copyright © 2016 Samdoit Infotech. All rights reserved.