MUM

MUM

Member Since 2 Years Ago

Mainz

Experience Points
7,020
Total
Experience

2,980 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
64
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
7,020 XP
Mar
21
2 months ago
Activity icon

Replied to Best Way Handling Inbound Mails

Thank you bobbybouwmann! I also found something about access Office365 (i'm using) over graph api. Currently I investigate, how to use. Anyone with experiences here?

Activity icon

Started a new Conversation Best Way Handling Inbound Mails

Hi there!

Currently I had a "task", extracting attachments from mail. I tried different solutions with different tools at linux command line, but any tool I had tested, has one or more cons, made automatic handling hard.

So, my next idea was using laravel

  1. extract "somehow" with php attachments from mails or
  2. with a online service, can receive mails and made it possible, let me access mailbox mails attachments over api

Now, for 1. i found for example the laravel-imap project (https://github.com/Webklex/laravel-imap#attachments). After my experiments with the tools, I honestly have concerns that extracting attachments works in all situations. So I expect, a online service work more accurate. I dont speak about a big volume of mails per month (maybe 30-50 currently), so it should also not so expensive if a service exists how I want.

So maybe a question to all people, was in the same situation: How you solve it? Which online service (or maybe laravel package) you can suggestion?

Feb
12
3 months ago
Activity icon

Replied to Change Lifetime For Passport Refresh Tokens

Okay, the way I know but I think, it should be easier. I create a feature request in the passport project.

Feb
11
3 months ago
Activity icon

Started a new Conversation Change Lifetime For Passport Refresh Tokens

Hi! Is there any way, change the default lifetime of auth code from 10 minutes to another time?

I found in passport/src/PassportServiceProvider.php this lines:

    protected function registerAuthorizationServer()
    {
        $this->app->singleton(AuthorizationServer::class, function () {
            return tap($this->makeAuthorizationServer(), function ($server) {
                $server->setDefaultScope(Passport::$defaultScope);

                $server->enableGrantType(
                    $this->makeAuthCodeGrant(), Passport::tokensExpireIn()
                );

                $server->enableGrantType(
                    $this->makeRefreshTokenGrant(), Passport::tokensExpireIn()
                );

                $server->enableGrantType(
                    $this->makePasswordGrant(), Passport::tokensExpireIn()
                );

                $server->enableGrantType(
                    new PersonalAccessGrant, Passport::personalAccessTokensExpireIn()
                );

                $server->enableGrantType(
                    new ClientCredentialsGrant, Passport::tokensExpireIn()
                );

                if (Passport::$implicitGrantEnabled) {
                    $server->enableGrantType(
                        $this->makeImplicitGrant(), Passport::tokensExpireIn()
                    );
                }
            });
        });
    }


    /**
     * Create and configure an instance of the Auth Code grant.
     *
     * @return \League\OAuth2\Server\Grant\AuthCodeGrant
     */
    protected function makeAuthCodeGrant()
    {
        return tap($this->buildAuthCodeGrant(), function ($grant) {
            $grant->setRefreshTokenTTL(Passport::refreshTokensExpireIn());
        });
    }

When I see it right, i could change the lifetime with Passport::tokensExpireIn($value) but it would also have a impact to other grant types like 'refresh' or 'password'. Is there any easy way, change it for auth code only without leaving default code?

Jan
27
4 months ago
Activity icon

Replied to Unexpected Behaviour In Array Validation

Thank you Snapery. Finally was this also the solution, I choose. All other options didn't work for me.

Jan
23
4 months ago
Activity icon

Started a new Conversation Unexpected Behaviour In Array Validation

I have built a check and fail at one point where I think it could be a mistake by Laravel.

Submitted by a formular with POST there are different values, which I try to validate with a formRequest. There are also an urls[]. But this should only be validated if hasOnline has the value 1. Furthermore, if hasOnline has the value 1, only the value urls[0] is a mandatory field, all other fields are optional and should only be validated if something has been filled in.

<?php

namespace App\Http\Requests;

use Illuminate\Contracts\Validation\Validator;
use Illuminate\Http\Exceptions\HttpResponseException;
use Illuminate\Http\Request;
use Illuminate\Foundation\Http\FormRequest;
use App\Rules\EmptyRule;

class UpdateRequest extends FormRequest
{
    /**
     * Determine if the admin is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
      return [
        'hasOnline' => ['required', 'boolean'],
        'urls' => ['array', 'required_if:hasOnline,1'],
        'urls.0' => ['array', 'required_if:hasOnline,1', 'url', 'distinct', 'active_url'],
        'urls.1' => ['nullable', 'url', 'distinct', 'active_url'],
        'urls.2' => ['nullable', 'url', 'distinct', 'active_url']
      ];
    }
}

If I now send the form with hasOnline value 0, I get the message {"urls.0":["The urls.0 format is invalid.","The urls.0 is not a valid URL."]} which i expect is wrong. When hasOnline is 0, the validation rules should not execute but it is executed. Is my epectation wrong? Is something wrong what I do here is it a wrong beheviour from laravel? Laravel Framework Version is 6.11.0