fahadkhan1740

fahadkhan1740

Member Since 1 Year Ago

Software Engineer at New Delhi

Experience Points 24,930
Experience Level 5

70 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 247
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.

18 May
2 months ago

fahadkhan1740 left a reply on Laravel And Mailtrap.io

I know this sounds silly, but have you checked thoroughly your username and password is the ​same as mailtrap provided you? :P

fahadkhan1740 left a reply on Where Are You All From?

New Delhi, India

fahadkhan1740 left a reply on Laravel And Mailtrap.io

Is there any exception you are getting? I'd suggest please share your code to send mail too.

fahadkhan1740 left a reply on Laravel Resource Route

I'd suggest please open up php artisan tinker and run command $crafts = App\IndividualCraftPerson::all(). If you see the result. Use any of those ids to pass on the URI to get the result. If you fail to do so, please contact me on Larachat, my username is *fahadkhan1740*

fahadkhan1740 left a reply on Deploying Laravel App On Cpanel Shared Account

Although its a very bad practice to deploy Laravel app on a shared host but here is the answer below.

  1. Create a zip file of your project including all dependencies on your local machine.
  2. Upload the zip file using File Manager on your shared host. The directory should be public_html.
  3. Extract all the files. Make sure your public_html looks like your project folder.
  4. Move all the files from public folder of the project to public_html of your server.
  5. Open index.php file and modify it as mentioned below.
require __DIR__.'/bootstrap/autoload.php';

$app = require_once __DIR__.'/bootstrap/app.php';

I have removed extra /.. from both the lines.

  1. Make sure you've your .env file in place.

VIOLA!!! IT SHOULD WORK

fahadkhan1740 left a reply on Laravel Resource Route

Please share your controller code as well

26 Mar
3 months ago

fahadkhan1740 left a reply on SQLSTATE[HY000] [2002] Connection Refused

I could be because you might have not restarted PHP artisan since long

So After making DB changes and config:clear Tinker works fine

But to make browser refect the new DB connection you need to re-run

php artisan serve

02 May
1 year ago

fahadkhan1740 left a reply on The Response Is Not A View Message When Unit Test Fails In Laravel 5.5

what is the purpose of making a News factory when you are not using it anywhere?

fahadkhan1740 left a reply on Get Total Count Of The Related Table

try this

Like::with('post' => function($query) {
    $query->where('user_id', $userId);
})->sum();
19 Apr
1 year ago

fahadkhan1740 left a reply on PHP Directly Print To Printer

hi @SaeedPrez, the link you mentioned is no longer available. Can you please provide any other resource in this regard? Thanks in advance.

22 Jan
1 year ago

fahadkhan1740 left a reply on How To Delete A Session Data After A Period Of Time? (OTP)

Will that conflict with the ongoing user session?

fahadkhan1740 started a new conversation How To Delete A Session Data After A Period Of Time? (OTP)

I am making a mobile number verification using OTP module. I want to associate the OTP with the mobile number for 3 mins only and want to forget the key beyond 3 mins. How can I do so?

I am using the following snippet.

Session::put(['otp' => $otp, 'mobile' => $number]);

04 Oct
1 year ago

fahadkhan1740 left a reply on Use Blade In External JS File

@jestins can you show me how exactly this can be done?

fahadkhan1740 started a new conversation Use Blade In External JS File

I want to use Blade Syntaxes in External JS file. Mostly for the following snippet.

@if(Session::has('message')) ... some js code ... @endif

how can I do that?

28 Sep
1 year ago

fahadkhan1740 left a reply on Laravel Mix With Bower Package

@ejdelmonico I think you meant to use bower_components like this path.resolve(__dirname, 'bower_components'). I tried this and doesn't seem to work.