Set XSRF(/CSRF) Token Globally or TokenMismatchException in Laravel 5.* (for AJAX)

Very easy (পানির লাহান) 🙂 STEP - 1: First we have to ad a meta tag (name="_token") in header <meta name="_token" content="{{ csrf_token() }}" /> STEP - 2: Then add below jQuery snippet before the </body> tag. Basically here we setting up the csrf token globally for ajax request. And after this we don't need to … Continue reading Set XSRF(/CSRF) Token Globally or TokenMismatchException in Laravel 5.* (for AJAX)

Laravel: php artisan commands

Here I am trying to list all Laravel PHP Artisan commands one by one for my reference and your too.   - To create and update table by migration php artisan make:migration Create_Table_Name  -> create a new table php artisan make:migration Update_Table_Name_Column_Name -> update table php artisan make:migration Add_Column_Name_Table_Name  -> add a new column to a table … Continue reading Laravel: php artisan commands

Update – Please visit skpaul.me for latest posts and updates

skpaul.me

Hi, Greetings!! Thanks for visiting my blog, I have open a blog (http://skpaul.me). So from now, you will get all latest posts and updates on http://skpaul.me.   Please take a look on my personal blog (http://skpaul.me), and let me know your comments and review.   Thanks in Advance sk paul http://skpaul.me

How to define Global Variable or Constant in Laravel

We often need to define global variables/constants for our application, like Status, Conditions, Countries (we can put all countries in table as it will be along array/object), also weekdays, weekends and e.t.c. vary on projects. Status (Active, Inactive) and Conditions (Ok, Good, Better, Best) or Grade (F, C, D, A, A-, A+), so like these … Continue reading How to define Global Variable or Constant in Laravel

Multiple sessions or Different logins at the same time on firefox

Multifox - is an awesome and very useful plugin for me. If you need to login multiple accounts at the same time, what did we do naturally, we used multiple browsers. But with this plugin on Firefox, you can access as many accounts as you want. Mozilla Addons link -> click here But if your browser’s version … Continue reading Multiple sessions or Different logins at the same time on firefox

How to find a column or filed name of a table from an entire database?

If you are working on a BIG project with lots of tables in the database, then it will be a good trick query for you to find out a column name of any table from that database.   My scenario was a bit different, I had to start work in the middle of a project … Continue reading How to find a column or filed name of a table from an entire database?

How to print query or debug queries in Laravel

We often need to debug large queries in Laravel. And laravel have built-in functions almost for everything. Here is a simple query in laravel for example. $data = User::where(‘status’, 1) ->select(‘name’, ‘username’, ‘email’, ‘password’) ->get();   but we want to see the sql query. So we have to use toSql() in the place of get() … Continue reading How to print query or debug queries in Laravel

Sublime Text Editor – User Preference Setting

If you working in any editor, you would like to set the environment as you want. And in Sublime Text you can set your preferences in a easy way. - Go to Preferences > Settings - User  and put the below preferences. You can also tweak the settings by blocking/unblocking the setting by double front … Continue reading Sublime Text Editor – User Preference Setting

WordPress or WooCommerce user manual on adding categories and products

How to add Categories? ---------------------- Mouse Hover Product Click on the Category, you will get a form Just fill up teh below fields - Name: Type the category name - Slug: no need to fill it, leave it - Parent: Select is your category is a sub category> Otherwise leave it. - Description: Type a … Continue reading WordPress or WooCommerce user manual on adding categories and products

Photoshop like interface(Shortcuts & Icons) of GIMP on Ubuntu/Linux

I was a windows user and recently transfer to Linux (Ubuntu). I try GIMP on Ubuntu as an alternative of Photoshop, but facing some issues, bcoz the interface is not exactly like Photoshop and I need a quick solution. So, I google and find a GIMP Photoshop Tweaks and here it is.. and Here is the … Continue reading Photoshop like interface(Shortcuts & Icons) of GIMP on Ubuntu/Linux