Setup React Project with Webpack 4 and Babel

Facebook created create-react-app utility to set up React Project with minimum effort and configuration. There is also a way to create your own setup for React project from scratch. Let’s start without wasting too much time.

Before starting, make sure you have installed npm on your computer. To check that run the following command npm -v this command outputs you the version of npm. NPM comes with NodeJs and you can install it from the official Node.js site.

Laravel Customize Default Authentication

Laravel provides built-in authentication by default that includes many security features. But its built-in Authentication only works with email and password fields. If we have any status field or if we want to store logs of logged in users then we don’t have other option then building own customized authentication. In this post, we are doing login with email, password and one more extra field of status/role. I am using status field and it depends on you which field you are using on your custom authentication. 

Laravel 5.5 Pagination for Bootstrap 4

There are multiple ways to replace Laravel’s default pagination with Bootstrap 4 Pagination. To get the laravel default pagination template you have to run the php artisan vendor:publish command in your terminal and this command will auto generates all the pagination templates including bootstrap 4 pagination template. If you check the resources/views then you find there is a folder with name vendor that holds another pagination directory with 4 files:

  • bootstrap-4.blade.php
  • default.blade.php
  • simple-bootstrap-4.blade.php
  • simple-default.blade.php