fidahasan08

fidahasan08

Dhaka

Hire Me

Member Since 3 Years Ago

Experience Points 8,500
Experience
Level
Lessons Completed 121
Lessons
Completed
Best Reply Awards 0
Best Answer
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • Chatty Cathy Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

05 Nov
2 weeks ago

fidahasan08 started a new conversation Passport Unauthenticated Request Redirect To Login Route

Passport unauthenticated request redirect to login route testing with postman note: at header i have Accept : application/json

17 Oct
1 month ago

fidahasan08 started a new conversation Inmotion VPS Supervisor Install For Laravel Queue

Hi, our apps (Laravel 5.1) running on a Inmotion hosting (VPS) we want to use laravel queue, but how should we run the queue:listen or queue:work (i'm not sure exactly the difference between them)

it seems we may need to install supervisor at our server. can i install it myself ? or i need to contact inmotion to do this?

or please suggest us whats will be the best to run queue:listen in our server ..

Thanks

fidahasan08 left a reply on Laravel Passport “auth:api” Middleware Acts As "web Auth" Middleware

@mstnorris

Laravel 5.7, passport , using post-man

i am sending a request to http://localhost:8000/api/user without access-token or with wrong access-token to get the right error. at header i added .. Accept : application/json but i'm getting "Route [login] not defined" instead of exact error message.

at 5.7 did anything changed ? any idea ?

12 Oct
1 month ago

fidahasan08 left a reply on USPS, UPS, FedEx Tracking Number Validation

@D9705996 thanks for your response :) i just checked, that is not free we are not going to any paid service for now.

fidahasan08 left a reply on USPS, UPS, FedEx Tracking Number Validation

@Cronix thanks for the suggestion,

a lot of task to parse the email etc... (i'm lazy enough hahaha )

but will definitely give it a try later.

fidahasan08 left a reply on USPS, UPS, FedEx Tracking Number Validation

Yes i have added the 10 digits expression for FedEx but not happy with it yet, coz its not bullet-proof solution :(

you are right, we need to go with API... not only for delivery-status check also for tracking-code validation.

fidahasan08 left a reply on USPS, UPS, FedEx Tracking Number Validation

and yes i'm trying with USPS API,

actually our system need to show the shipment-status and mark them as delivered automatically. so as we are doing now is - every 30 minutes we check usps api whether it is delivered or not. at this point i'm also interested to know .. if there has anything like webhook .... so that whenever a package delivered usps will hit one of our server-url and we don't need to check for delivery status every 30 minutes... just curious maybe there has something which we don't know yet.

btw you are very helpful :)

fidahasan08 left a reply on USPS, UPS, FedEx Tracking Number Validation

Thanks @Cronix

Yes, i have a carrier selector (dropdown) before entering the tracking number

i tried several solutions it seems to me USPS & UPS are working fine.

but i stuck on a FedEx Tracking Code. for example i have this FedEx Tracking Code "4628946685" if you go to fedEx website and try to track it .. you can see it is a valid tracking code

but your given StackOverflow answer and whatever i have found so far .. doesn't let fedEx to enter 10 Digits. so i think none of this regex well updated.

thanks

fidahasan08 started a new conversation USPS, UPS, FedEx Tracking Number Validation

Hi, i need to validate the user input (tracking number) of USPS, UPS, FedEx

i believe someone already have the regular expression for this.

anybody please ??

07 Apr
7 months ago

fidahasan08 left a reply on Multiple Sites Link To One Sign Up Form, How To Track Where User Came From In Laravel?

at your sign-up form use a hidden input field to store the company.

21 Aug
1 year ago

fidahasan08 left a reply on Watch Directory For New Files

Hello @Cronix i created a console command 'watcher' it can start watching and works perfectly but you know i need to run it at server. if i run the command php artisan watcher it start watching but if i close the terminal the watcher stop. so i need to run it as a background command-task .. like this php artisan watcher & (adding ampersand at the end of command)

now problem is how to stop the watcher ?? (when it will start running at server)

Watcher.php (my console command)

<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Support\Facades\Log;

class Watcher extends Command
{

    protected $signature = 'watcher';


    protected $description = 'Watch transactions directory for new files';

    protected $counter = 0;



    public function __construct()
    {
        parent::__construct();
    }


    public function handle()
    {


        $watcher = app('watcher');

        $listener = $watcher->watch(storage_path().'/app/transactions');



        $listener->onAnything(function($event, $resource, $path)
        {
            $msg = $event->getCode().' '.$path;

            // here i will process the file
            $this->warn($msg);
            Log::info($msg);

        });



        $watcher->start(1000000, null, function($watcher){

            $this->counter++;

            //here i can stop watcher ...

            if($this->counter > 10){

                $watcher->stop();
            }

            $this->info($this->counter.' watcher running');


        });


    }
}

fidahasan08 left a reply on Watch Directory For New Files

Hello @Cronix the resource-watcher by jasonlewis is awesome! i already tested it, it works fine ( though i'm having some issue with it )

after some more test i will let you know.

Thanks :)

20 Aug
1 year ago

fidahasan08 left a reply on Watch Directory For New Files

another 3rd party service (USA TECH) is pushing those .csv files at our server by FTP. and unfortunately they can't hit any webhook (i really don't know why they don't ... coz its easy enough)

i found some bash/shell scripting solution while searching for this ... but i have no idea how to use them at our server (we run a vps server .. by inmotion..)

btw thanks for your reply... still looking for a better solution, coz some of our dashboard display real-time data. and as its related with transactions .. our data update almost every seconds.

Thanks :)

19 Aug
1 year ago

fidahasan08 started a new conversation Watch Directory For New Files

Hi, currently our laravel 5.1 app runs a schedule command every minute and search for new files at a specific directory. If any files found .. it process the files and move to a /Read folder.

we are wondering IF there is a better way to know .. whenever a NEW file exist at that specific folder (instantly). then we could fire an event or run a console command to process the files.

Thanks in advance for any help :)

11 Jan
2 years ago

fidahasan08 left a reply on Multi Store E-commerce Platform

thank you martinbean , for your reply i also found some magento based ready solution, but still searching for more options to compare. i believe there must have some more.

waiting for someone who has already researched (experienced) about it .

10 Jan
2 years ago

fidahasan08 started a new conversation Multi Store E-commerce Platform

Hi, we need to create a e-commerce platform where users can create their own shop/store (multi shop/multi vendor) . user can simply signup and get a store ready for them where they can upload products, receive orders etc..

should we start from scratch or there already has some good resources ?

we prefer to build with laravel obviously , but we don't have enough info if magento or any other e-com platform has already has this type of facilities.

i know this is directly not a laravel question, sorry for that.

any suggestion please, thanks

10 Sep
3 years ago

fidahasan08 left a reply on Best Way To Track Online User

thanks for your response, you know laravel update session table himself (i don't know the backend process) now if i want to fire an event on each update, i need to know how laravel is updating session table. do you know where/how can i handle that process myself ?

fidahasan08 started a new conversation Best Way To Track Online User

Hello Genius i have to create a Online User list. currently i'm storing session at database. and when someone visit a specific route (like /dashboard) i'm updating session table with user_id .

Each time a user use any route or take any action, session table update automatically (laravel do this himself) so i know the last_activity time.

Using this method i'm getting a list of online user with last activity time, but it is not a complete solution yet. coz when a user left the application or logout i can't know that.

can you please suggest me, what is the best way to create a real time Online User List ??

In addition, recently i have already become a great fan of Event Broadcasting (playing with pusher, its really fun stuff) i want to use event broadcasting to make my Online User List more live so that i can see updated online user list without any page refresh. when you will write your answer for me plz consider this thing also. Thanks in advance :)

31 Aug
3 years ago

fidahasan08 left a reply on Mark As Default

Thank you for your suggestion. i'm going to follow opt 2

fidahasan08 started a new conversation Mark As Default

Hi, I have a model 'Location' which may contain multiple photos under it. so i have another model 'LocationPhoto' . now i want to mark a photo as DEFAULT photo for a specific location. i can do it two ways -

  1. keep a boolean field at location_photos table named 'is_default'
  2. keep a int field at locations table to store the default photo id , something like 'default_photo_id'

now i'm confused which method will be easy for further implementation, like when i will try to set/change the default photo of a location.

please suggest me, btw i'm new here so if i did any mistake please take it easy :)