spbaniya

spbaniya

Software Engineer at Edelberg & Associates, Intergo Telecom

Member Since 1 Month Ago

Pokhara

Experience Points
250
Total
Experience

4,750 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
0
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 1
250 XP
Feb
13
5 days ago
Activity icon

Replied to Cannot Retry Previously Timeout Job

@bobbybouwmann If you see this URL: https://i.imgur.com/6yf7osA.png there are 3 such Jobs that never success

Activity icon

Replied to Cannot Retry Previously Timeout Job

Yes, I'm confirmed

Activity icon

Replied to Cannot Retry Previously Timeout Job

@bobbybouwmann They failed again within less than a second. I confirmed it as the failed_at timestamp and id of failed job was changed

Feb
12
6 days ago
Activity icon

Replied to Cannot Retry Previously Timeout Job

There are other failed jobs as well. For e.g. Mysql Gone away jobs and when I retry it works completely fine.

I call queue:retry for each individual job retry

Activity icon

Started a new Conversation Cannot Retry Previously Timeout Job

Previously timed out jobs are unable to retry. How should such jobs be retried?

Getting this error

Illuminate\Queue\MaxAttemptsExceededException: App\Jobs\SendJob has been attempted too many times or run too long. The job may have previously timed out.
Jan
23
3 weeks ago
Activity icon

Started a new Conversation What Is The Best Approach To Do Unit/Feature Testing In Laravel

What is the best approach to do Unit/Feature Testing in following scenario?

  • Have Authenticate Service on Lumen
  • Have Messaging Service with API endpoints exposed for sending emails on Lumen
  • Have Frontend on Laravel for user login from Authenticate Service and using remoteDB of #2 for fetching reports

How would I write testing on #3 that involves remote dB and API endpoints?

How would I test any callbacks from email service provider on #2?

Jan
15
1 month ago
Activity icon

Replied to Getting Error: Cannot Declare Class A Because The Name Is Already In Use

'namespace' => 'Module\' . ucfirst($this->module) . '\Http\Controllers',

Is working fine for me i.e. namespace without \\ at the last

Activity icon

Started a new Conversation Cannot Load Custom Package Blade Files

In ServiceProvider I used:

    public function publishView()
    {
        $this->loadViewsFrom(__DIR__ . '/../../' . ucfirst($this->module) . '/views', $this->module); // $this->module = 'account';
    }

In Controller

public function showLoginForm()
{
    return view('account::auth.login');
}

This is working fine... Now I wanted to include other blade files inside auth.login as:

@include('account::forms.login')

But I'm getting error:

View [forms.login] not found. (View: app/modules/Account/views/auth/login.blade.php)

How can I fix this issue?

Activity icon

Started a new Conversation Getting Error: Cannot Declare Class A Because The Name Is Already In Use

In CustomServiceProvider I added following piece of code:

private function publishRoutes()
    {
        $this->publishWebRoutes();
        $this->publishApiRoutes();
    }
    private function publishWebRoutes()
    {
        $this->loadRoutesFrom(__DIR__ . '/../../' . ucfirst($this->module) . '/routes/web.php');
    }
    private function publishApiRoutes()
    {
        $this->loadRoutesFrom(__DIR__ . '/../../' . ucfirst($this->module) . '/routes/api.php');
    }
    /**
     * Load the standard routes file for the application.
     *
     * @param string $path
     * @return mixed
     */
    protected function loadRoutesFrom($path)
    {
        //dd($this->getNamespace());
        Route::group([
            // 'middleware' => 'api',
            'namespace' => 'Module\' . ucfirst($this->module) . '\Http\Controllers\',
            'prefix' => $this->module,
        ], function ($router) use ($path) {
            require $path;
        });
    }

I defined a route in web.php as

Route::get('test', '[email protected]');

When I tried to run, I'm getting this error:

Symfony\Component\Debug\Exception\FatalErrorExceptionCannot declare class Module\Account\Http\Controllers\AccountController, because the name is already in use

Any idea why am I getting this error? I have not declared AccountController anywhere else.. Also I get same error for any random Controller