Open in app

Sign In

Write

Sign In

Shah Md. Iktakhairul Islam
Shah Md. Iktakhairul Islam

2 Followers

Home

About

Dec 6, 2022

Get location with user ip — Laravel Package

Add package to composer .json — "stevebauman/location": "^6.1" 2. Use location — $location = Stevebauman\Location\Facades\Location::get(request()->ip()); 3. Now you can find object like this — Stevebauman\Location\Position Object ( [countryName] => [countryCode] => US [regionCode] => [regionName] => California [cityName] => Mountain View [zipCode] => 94043 [isoCode] => [postalCode] => [latitude] => 37.4192

Laravel Ip

1 min read

Laravel Ip

1 min read


Sep 7, 2022

Laravel Module Add And Configuration Simple way

Module adder install by composer composer require nwidart/laravel-modules 2. Publish vendor php artisan vendor:publish --provider="Nwidart\Modules\LaravelModulesServiceProvider" 3. Add “Modules” folder to composer.json autoload { "autoload": { "psr-4": { "App\\": "app/", "Modules\\": "Modules/", } } 4. composer dump-autoload 5. Create module by command php artisan module:make <module-name>

Module Add Laravel

1 min read

Module Add Laravel

1 min read


Aug 28, 2022

Laravel custom validaion rules with custom message set.

Applying in student login page:

Laravel Custom Validaiton

2 min read

Laravel custom validaion rules with custom message set.
Laravel custom validaion rules with custom message set.
Laravel Custom Validaiton

2 min read


Aug 28, 2022

Laravel Custom Table Login with Custom Validation Rules with Custom Message

Loin Table: students 2. Login Blade with code:

Laravel Custom Login

4 min read

Laravel Custom Table Login with Custom Validation Rules with Custom Message
Laravel Custom Table Login with Custom Validation Rules with Custom Message
Laravel Custom Login

4 min read


Jun 13, 2022

Laravel Import Data From Excel or CSV file by one single function.

If your excel or csv file has less then 26 column then this function will work and return you a clean array of each row of excel or csv. use PhpOffice\PhpSpreadsheet\IOFactory; set getDataArrayFromExcel function in helper or whatever you want and pass the excel or csv file to this method…

Laravel Excel

2 min read

Laravel Import Data From Excel or CSV file by one single function.
Laravel Import Data From Excel or CSV file by one single function.
Laravel Excel

2 min read


Oct 24, 2021

Laravel Subdomain - localhost

In your database user table column name domain is for each sub domain. Example — 'name' => 'Shah Md. Iktakhairul Islam', 'email' => 'iktakhairul@gmail.com', 'password' => Hash::make('admin'), 'domain' => 'developer', 'role' => 'developer', 'weight' => 59.00, .env APP_URL=http://laravel-sub-domain.com SUB_URL=laravel-sub-domain.com 2. config/app.php create line bellow url. 'short_url' => env('SUB_URL', 'http://localhost'),

Subdomain

1 min read

Subdomain

1 min read


Oct 24, 2021

Laravel Authenticate Login and Logout Functions

This is default authenticate’s Login and Logout Functions. Just copy and paste login and logout functions to your controller and redirect to or route your custom url. use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Validation\ValidationException; Login Function. public function login(Request $request) {…

Laravel Login

2 min read

Laravel Authenticate Login and Logout Functions
Laravel Authenticate Login and Logout Functions
Laravel Login

2 min read


May 23, 2021

Laravel Multiple Values Request Parameter with Multi perimeter Filter with Null value also.

Just read, understand, copy those code and replace by your variables and fields it should work correctly. Don’t scared of those codes, most of them are for presenting data with professional way. If you don’t understand just contact with me with email or phone. Controller Index Function: Pass request to our functions and returning data with collection. You can return without collection also. 2. FindBy Function: Here we pass data to main method and organize data.

Multiple Values Request

2 min read

Laravel Multiple Values Request Parameter with Multi perimeter Filter with Null value also.
Laravel Multiple Values Request Parameter with Multi perimeter Filter with Null value also.
Multiple Values Request

2 min read

Shah Md. Iktakhairul Islam

Shah Md. Iktakhairul Islam

2 Followers

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech