10 Tools every laravel developer should know

1) Smart IDE :

PhpStorm would be a best IDE for laravel Framework. It is run smoothly, smart code navigation, fast & safe refactoring, easy debugging and testing, code formatter. IDE is an important part for a developer. It’s increase developers productivity, save time at debug code.

2) Github / Bitbucket :

Github / Bitbucket is providing git repository hosting service, Git is a command line tools and github/bitbucket provide GUI for git repository.It is mainly used for the multiple developers and git repo. Git is easy to pull and push code on git repository. Git is automatically manage merge code with changes and time tracking. It is modern way to working.

3) Laravel Debugbar :

Laravel Debugbar is used for debugging laravel application. Laravel debugger is display at bottom of browser with debug information. Queries tab is best part of debugger. It is displays how many queries are fired.

– Installing laravel Debugbar

(1) In laravel 5 require the packages.

   composer require barryvdh/laravel-debugbar

(2) In config/app.php and open ‘providers’ array add:

   'Barryvdh\Debugbar\ServiceProvider',

(3) at last, if you wish to add the facades add this to the ‘aliases’ array:

   'Debugbar' => 'Barryvdh\Debugbar\Facade',

Now your app is in debug mode the bar will already be loading and showing stats of page.

4) Migrations :

Migrations are code that representation of database schema. Developer team does not need to sharing sql dumps with new developer that comes on project. when you run below command you can create migrations for all the tables in your database.

    php artisan migrate:generate

If need to migrate only certain tables then we use :

    php artisan migrate:generate table1,table2

 

5) Entrust :

Easy way to add role based permissions to laravel application. It is created 4 new tables. role, role_user, permission, permission_role, which is used to set up roles with different levels.

6) Laravel Backup :

Backup is important for developer. In laravel application you can take all files backup using run this command.

   php artisan backup:run

It is created Zip file with all files and dump of database in project directory.

7) User Verification :

For check user authentication we are verify users and validate emails. User verification is generate and store verification token for the registered user, send an email with verification link. It is handled verification token and set user as verified.

protected function validator(array $data)
{
   return Validator::make($data, [
     'name' => 'required|max:255',
     'email' => 'required|email|max:255|unique:users',
     'password' => 'required|min:8|confirmed',
   ]);
}

 

8) Socialite :

Socialite is offers an easy and simple way to handle OAuth authentication for social media including Facebook, twitter, google, github, etc.

$user = Socialite::driver('github')->user();

// OAuth Two Providers
  $token = $user->token;
  $refreshToken = $user->refreshToken;
  $expiresIn = $user->expiresIn;

// All Providers
  $user->getId();
  $user->getName();
  $user->getEmail();
  $user->getAvatar();

 

9) Tinker :

Tinker is allows to interact with laravel project from the command line and access all events, objects. After Laravel version 5.4 it is optional ad-on installed manually.

10) NoCaptcha :

NoCaptcha package is use to Google Captcha verification, “I’m not a robot” validation. For this service need to free API Key.

NoCaptcha::shouldReceive('verifyResponse')
  ->once()
  ->andReturn(true);
// provide hidden input for your 'required' validation
  NoCaptcha::shouldReceive('display')
  ->zeroOrMoreTimes()
  ->andReturn('');


The post is written by Kirti Parmar.  Kirti works as Laravel developer at coder adobe.  
You can hire laravel developer or outsource laravel project from coderadobe by contacting us via email or contact form.

Newsletter signup

CONNECT WITH US

SEARCH THE CoderAdobe BLOG

Related Post