Skip to content

How to use PHP NumberFormatter to convert numbers to words

Enable intl extension in PHP.ini (Remove the semicolon before) extension=intl Run composer update to use the PHP NumberFormatter ...

Details

Basic & Advanced Concepts on Laravel Database Migrations & Models

Creating Migration File: php artisan make:migration create_[table_name]_table –table=[table_name] Example: php artisan make:migration create_users_table –table=users Migration File for Updating ...

Details

How to prevent form re submission in Laravel

Server-Side Solution: In your controller’s method (that handles input data in a form i.e; Create/Preview), you can generate ...

Details

Laravel Validation – use multiple Form Requests for complex scenarios

Let’s assume we have website where we allow to create multiple types of user. For example we might ...

Details

Implementing Laravel Service-Repository pattern using Form Request

Putting all the business logic into the controller can be messy at times, specially when the project is ...

Details

How to deploy Laravel project on Shared Hosting using cPanel

Step 1: Zip archive all contents inside your project directory. Step 2: Upload the Zip file into hosting ...

Details

How to implement Laravel Excel for exporting data

Laravel Excel allows exporting data in various formats like – XLSX, CSV, XLS, HTML, etc. 1. Install Package ...

Details

Laravel Role Permission based authentication using Spatie package

Install Composer Packages: composer require spatie/laravel-permission composer require laravelcollective/html Now open config/app.php file and add service provider and ...

Details

How to add a custom helper class in Laravel

Step 1: Create your Helpers (or other custom class) file and give it a matching namespace. Write your ...

Details

Laravel Installation and Get Going Basics

Installation Via Composer: If your computer already has PHP and Composer installed, you may create a new Laravel ...

Details