fida

Member Since 4 Years Ago

Dhaka

Experience Points
10,290
Total
Experience

4,710 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
136
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

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

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

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

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    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 Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

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

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

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

Level 3
10,290 XP
16 Sep
5 days ago

fida left a reply on How To Debug Maximum Execution Time Of 30 Seconds

@cronix yeah probably its the only way to know details about the time-out errors.

we are using Apache, i tried to find out the main error_log file but failed, there has no such error log file in our server :( i just run phpinfo() to see details and unfortunately 'error_log' value is empty (no path defined)

now i will try to enable the server's error_log (i'm not sure maybe php's error_log .. idk) and lets see if we can find anything there.

fida left a reply on How To Debug Maximum Execution Time Of 30 Seconds

@snapey thanks for your explanation.

actually we didn't wanted to manually test all the scripts (as i mentioned earlier there has many scheduled commands) and its not possible. becoz the time-out could be occurs also at any controllers (when someone try to generate reports) we don't know who is trying to generate which reports (its comparatively large application)

whatever, now i will target some selected scripts and test them one by one.

btw still i'm curious isn't there has any way to determine - exactly which scripts throwing time-out errors ??

fida left a reply on How To Debug Maximum Execution Time Of 30 Seconds

@siangboon its a laravel 5.1 app, telescope isn't supported (not sure)

"write a simple function to log before and after each execution...." can you please explain. note plz: we have a lot of scheduled commands they run in different times of days/weeks. and main command runs every minutes which is a really huge scripts.

my main question is: how to determine exactly which scripts are throwing time-execution errors.

fida left a reply on Handle Classified Website Image Gallery

the ultimate solution for image resizing etc http://image.intervention.io/ its easy and popular. just try it :)

fida left a reply on How To Debug Maximum Execution Time Of 30 Seconds

@antlusher thanks for your response, this is in production server. i just want to know which script/s are throwing the time-execution error so that i can check my loops or other time consuming functions.

i'm not sure what did you mean by PHP log? (how/where to find that) i find the errors at storage/logs/laravel.... daily logs files and at /public/error_log file

fida started a new conversation How To Debug Maximum Execution Time Of 30 Seconds

Hi, our app is build on laravel 5.1, we are getting maximum execution time errors randomly as we are running a lot of (25+) scheduled commands, different times of days its very difficult to know exactly which scripts is throwing those max execution time errors

is there any way to log more details or know exactly which script is causing the errors?

[16-Sep-2019 09:32:36 America/Chicago] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /home/medall12/public_html/mynew2.medallionmint.com/vendor/laravel/framework/src/Illuminate/Support/helpers.php on line 429

thanks

05 Sep
2 weeks ago

fida left a reply on Laravel Store Locator

@bobbybouwmann did you even read his question?

He was looking for store-locator for his e-com web app written in laravel.

21 Apr
5 months ago

fida left a reply on Why MySql Show Number Of Rows 2X After Adding Foreign Key

i found the issue, at phpmyadmin when you see database-structure page (all tables) it doesn't show real-count for rows (for some tables) it display rows count maybe from cache. similarly when you go to a table (Browse page) where it shows first few records ... it says something like 'Showing rows 0 - 24 (433687 total, Query took 0.7109 seconds.)' this total is also from cache.

it was a simple and silly issues :)

btw thank you guys for your reply.

20 Apr
5 months ago

fida started a new conversation Why MySql Show Number Of Rows 2X After Adding Foreign Key

hi, my mysql table 'device_alerts' has around 200K records, it has a column 'machine_id'

today i added foreign key constraint for 'machine_id' (id of machines table) and now device_alerts table is showing number of records 400K !!

can you please explain why ?

31 Mar
5 months ago

fida left a reply on Send Email From Linux Server

@RICARDO - Hey, Thank You Man

i just tried zoho, and started using it for FREE!!!!

yes its free forever for 1 domain and only $1/month for multi-domain (see bottom of the pricing page) https://www.zoho.com/mail/zohomail-pricing.html

i just love Zoho, love you!!!! and ofcourse the Laracasts :)

fida left a reply on Send Email From Linux Server

@RICARDO - Thanks for the article. I really dont want to setup and maintain a email server myself.

As i need a email address with my own domain, now i can see only one option google's Gsuite. But it cost $5/month per user. around $60/year just for email. Can't be happy for my hobby project :(

OR i think AWS is not appropriate for me.

fida started a new conversation Send Email From Linux Server

I am running a linux (ubuntu 16.x) instance at aws lightsail. Apache, mysql, php installed (bitnami) for my laravel application. Domain example.com, ssl everything configured and app is ready to use.

My question is How to-

  1. create some email address ex. [email protected]
  2. And send/receive email

If i use any 3rd party mail service like mailgun, aws SES.... I still need a email address of my own domain, which will be used as "From" and ofcourse i want to get reply from my users.

So i think i need to install a mail server, (though i have no experience about that)

In such scenario what would you do? Please give me some suggestion.

05 Nov
10 months ago

fida 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
11 months ago

fida 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

12 Oct
11 months ago

fida 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.

fida 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.

fida 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.

fida 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 :)

fida 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

fida 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
1 year ago

fida 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.

<input type="hidden" name="refereed_by" value="example_company" > 
21 Aug
2 years ago

fida 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');


        });


    }
}

fida 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
2 years ago

fida 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
2 years ago

fida 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
3 years ago

fida 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
3 years ago

fida 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
4 years ago

fida 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 ?

fida 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
4 years ago

fida left a reply on Mark As Default

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

fida 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 :)