yeasir_arafat

yeasir_arafat

Member Since 3 Years Ago

Experience Points
9,220
Total
Experience

780 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
83
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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 2
9,220 XP
Aug
09
1 month ago
Activity icon

Replied to Migrating An Old Project To Latest

that is a valid point @martinbean . However, migrating to a newer version each week is not possible as the codebase is massive. Maybe one version every 2 months is feasible, maybe. That is one option. Thanks

Aug
06
1 month ago
Activity icon

Replied to Migrating An Old Project To Latest

@martinbean @talinon : I am going to maintain two codebases becasue the current codebase is a live project, developed overa couple of years. And there are new features needing to be introduced constantly. So it is not possible to stop new development. At the same time i do not want to keep developing on old version of laravel. So my plan is to introduce new features that have almost no dependency on the old codebase models/logics etc. I can develop those features in a new version of laravel, but the users should not have to visit a new url or subdomain. Rather I want the request s to land on the current project and if the url relates to the new feature on the new codebase, it should be served from there.

I got suggestion of using PHP Guzzle http client package. That is one option. I was looking for more interesting ideas.

Aug
05
1 month ago
Activity icon

Started a new Conversation Migrating An Old Project To Latest

I am planning to migrate a laravel project built with laravel 5.2. I have a list of new features that i want to add to my project, but i want to develop these in laravel 7. That means I have two codebases for the same application(logically). Over time i will phase out the old codebase as i migrate/develop old/new features in the new codebase.

Looking for suggestions on how to achieve this.

  1. Is this even possible?
  2. Can i redirect a request from old codebase to new codebase project based on the route?
  3. Will i need a hardware level routing?

etc. etc. Please put your valuable thoughts in the comments.

Thanks

Jun
29
2 months ago
Activity icon

Started a new Conversation Limitation Of Laravel Migration Tool

I am relatively new to laravel in a sense that all I have is personal project experience. Been into web dev for about 2.5 years and was trying to get into a job that had laravel stack. So recently on an interview I was asked whether I know about any limitations of the laravel migration tool? I din't. There must be, everything has pros/cons. So, what are the top few limitations of laravel migration tool?

Apr
12
5 months ago
Activity icon

Replied to Error: Call To Undefined Method Illuminate\Container\Container::resourcePath()

@bobbybouwmann :

Issue was solved by extending Tests\TestCase Instead of extending PHPUnit\Framework\TestCase !! I generated the unit test by executing the artisan command which by default creates a test class that extends the PHPUnit\Framework\TestCase. I am not sure, but wondering, should that NOT be the default behavior by artisan when creating a unit test?

Apr
11
5 months ago
Activity icon

Replied to Error: Call To Undefined Method Illuminate\Container\Container::resourcePath()

hmmm. I will try to debug a bit more. Otherwise will do a fresh installation of a previous laravel version. Thanks for your time. Please let me know if anything else comes to your mind.

Activity icon

Replied to Error: Call To Undefined Method Illuminate\Container\Container::resourcePath()

And as i mentioned, this is only happening when running the test suite. If i am visiting the url on the browser, the resource_path() method works just fine!

Activity icon

Replied to Error: Call To Undefined Method Illuminate\Container\Container::resourcePath()

nw. I removed the services.php file and executed composer dump-autoload. Still getting the error:

1) Tests\Unit\DocumentationTest::it_returns_the_documentation_page
Error: Call to undefined method Illuminate\Container\Container::resourcePath()

E:\installed_programs\xampp\htdocs\my-documentation\vendor\laravel\framework\src\Illuminate\Foundation\helpers.php:730
E:\installed_programs\xampp\htdocs\my-documentation\tests\Unit\DocumentationTest.php:20
Activity icon

Replied to Error: Call To Undefined Method Illuminate\Container\Container::resourcePath()

Hi @bobbybouwmann,

I do not have a compiled.php file under bootstrap/cache. I have a services file, but that is services.php, not services.json. Is that normal? Should I delete the services.php file?

Activity icon

Replied to Error: Call To Undefined Method Illuminate\Container\Container::resourcePath()

my composer.json file says:

"laravel/framework": "^7.0"
Activity icon

Started a new Conversation Error: Call To Undefined Method Illuminate\Container\Container::resourcePath()

I am following the last episode of How to read code series. I have latest version of laravel and composer. When running the below test:

    public function it_returns_the_documentation_page()
    {
        File::shouldReceive('get')
            ->with(resource_path("docs/0.1/auth"))
            ->once()
            ->andReturn("auth doc");
        $contents = Documentation::get("0.1","auth");
        $this->$this->assertEquals("auth doc", $contents);
    }

I am receiving the error:

Error: Call to undefined method Illuminate\Container\Container::resourcePath()

My Documentation class:

namespace App;
use Illuminate\Support\Facades\File;

class Documentation {
    public static function get($version, $page) {
        $path = resource_path("docs/${version}/${page}");
        // dd(app('path.storage'));
        // $path = ("docs/${version}/${page}");
        return File::get($path);
    }
}

Spent about the whole day trying to figure out what is wrong. This happens when running tests. No issue if i visit the route from browser. Any idea, please?