mohammadkaab

mohammadkaab

Member Since 2 Months Ago

Experience Points 2,190
Experience Level 1

2,810 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 19
Lessons
Completed
Best Reply Awards 0
Best Reply
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.

13 May
1 week ago

mohammadkaab started a new conversation Laravel Dusk Can't Run Two Tests Referring To One Page

Hi I'm writing a couple of tests with LARAVEL dusk and I've recently dumped to a new problem. well, the problem is very famous and everyone has seen it for once at least Actually I have two tests which they are calling the same page and also posting the same page. (I mean submitting the same page). The first test works as expected and the response is exactly as I want. but the second test is giving a bit different response. The response

The Page has expired due to inactivity.
Please refresh and try again.

I don't want to disable CSRF-TOKEN I've also used javascript to fill the _token field with a new token but still the same response I'm trying refresh method still the same response

More info: When I just commented the first test the second test works as expected. so maybe the reason of the problem Is the first test. But I don't know really what should I do to make this works. Any clue guys? Thanks for any help.

03 May
2 weeks ago

mohammadkaab started a new conversation Fail_job Using The Old Data When They Retry Again

Hi,

I'm wondering if you have ever face such problem, I've a job and my job failed for some reasons now after 5 days I want to restart my failed_job. I'm wondering if I restart my job, does it use the old information which it was using 5 days ago, since there some sql queries and some other calculation which it's related to the database.

Thanks for any answer.

30 Apr
2 weeks ago

mohammadkaab left a reply on Attach A New Class To An Interface In Testing

Actually I did not find the problem so far, so basically that what I've done, just changed some of the bindings in serviceProvider file so I've just put some a condition to check if it's testing env or rather something else. this solve the issue Thanks any way.

mohammadkaab started a new conversation Attach A New Class To An Interface In Testing

Hi everyone

Actually I'm binding a new concrete class to an interface in one of my test classes so this way stoping the app of calling the real classes but what I'm facing it's a really funny problem. now in one of my tests I'm calling an api and that api code it's also calling a method in a different class. the problem is here that the binding it's totally working in the api code but when the api code calling a method from a different class the binding it's not working there and it's using the real class which which it's should not use.

03 Apr
1 month ago

mohammadkaab started a new conversation Log Wants To Put Content In Strange Address

? every one, sometimes I've noticed that laravel tries to log into wrong file and the address it's very strange

file_put_contents(/v3m7spJxlUyrx7hByso2as4avezAmqclAuKm9Hix) 

Have you every face this kind of errors ? or why this is happening ?

19 Mar
2 months ago

mohammadkaab left a reply on Clean My Code Of \Log::

Yeap thanks, But I though there is more. since laravel model event not covering all of the parts of the project

18 Mar
2 months ago

mohammadkaab left a reply on Clean My Code Of \Log::

Logs should stay, What Do I mean with cleaning the code it's not mean to remove them, I mean to find a way to just not see them there in the Code but they actually work, let's call it behind the scene, One of my ideas it's to create an event for each of the controller action and at the end of each action Just trigger a handler according to that event. in that way, I'll extract all of the logs. But I thought maybe there is a better solution for it.

mohammadkaab started a new conversation Clean My Code Of \Log::

Hi everyone, I've started working on a project which increased growth in code since the customer requirements always are the most important portion of the whole process. so after one year when I'm just looking at my code I can see there are 5 places in one method which I've written Log::info, Log::error, Log::warning and That's really pain in ass when you should skip the log when you are just tracking the code and it's like hey common skip me I'm nothing. now I'm wondering somehow if you have a solution for that I mean if I can clean the code or at least extract those Logs or any mechanism you are using which I'm blind to it.