MrMooky

MrMooky

Member Since 1 Year Ago

Experience Points
12,400
Total
Experience

2,600 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
113
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 3
12,400 XP
Oct
24
6 days ago
Activity icon

Replied to Statamic With Multiple Users And Solo Licence

@tisuchi The thing is, I have to enable "Pro-Mode" in dev in order to even use it with my current setup. I was not able to find any other setting regarding this. Statamic finds multiple users in the database, and thus assumes a multi-user setup.

Activity icon

Started a new Conversation Statamic With Multiple Users And Solo Licence

I wanted to try Statamic since I will need some custom pages to my app and maintaining them with multiple blade files is no fun anymore. Since this is for a side project, I want to use the Solo licence.

But I'm not sure if that is even possible if there are already hundreds of users in my database. People can sign up on my app and do stuff there but they should not have any access to the Statamic part. Only one user (me) should be able to maintain.

So, I did not find any clear word about this, but can I use the Statamic Solo license even if there are hundreds of users in my database, but I only want / need one user to maintain (and have access) Statamic pages?

Oct
06
3 weeks ago
Activity icon

Replied to Best Practices For Custom Service Functions

@bugsysha I actually have no problems with that. I've used both Cashier and the Stripe PHP API directly in the past. But for this particular project I will only need 3-4 API calls to Stripe so I don't see the need to use Cashier here.

I just wanted to move those 3-4 calls outside of my Controller and put them in some sort of Service "Helper File". I saw this approach in a tweet from the Spatie guys but could not find any more information regarding that.

@laracoft I'll check it out, thanks.

Oct
05
3 weeks ago
Activity icon

Replied to Best Practices For Custom Service Functions

@bugsysha Would you be so kind and post a short code example for this approach? I looked at the repository pattern, but it seems to work with simple codebases only and many people report problems when using this approach with Laravel.

Activity icon

Started a new Conversation Dynamic Wildcard SSL Certificate

I've been trying and searching all over Google, StackOverflow and the Cloudflare forum, but was not able to solve this issue. Let's say I have an app were users can sign up and create their own page. This page should be accessible from "custom1.domain.com". Another user signs up and creates a page called "mypage" - so the subdomain will be "mypage.domain.com" and so on.

Apparently, this is only possible with a Cloudflare Enterprise plan, which is way too expensive for me. Also, creating a new A record via API is also not a solution, since there can be 1000+ pages.

What other solutions are there so that dynamically(!) created subdomains are automatically available through https? I'm not glued to Cloudflare for this, any reliable, easy to understand service will do it. I looked at AWS Route53 but that seems really complex and also would mean I have to completely move my domain to AWS, not just point there via DNS.

Oct
03
3 weeks ago
Activity icon

Started a new Conversation Best Practices For Custom Service Functions

I was wondering what the best or better way in handling service specific functions is. Let’s say I have multiple Stripe functions like createCustomer, updateCustomer, getSubscription etc. I don’t want to handle inside my controller but only call these functions from within a controller.

Coming from an Extbase background, I would create some sort of StripeService.php file. But as far as I see, Service means something different then I expected in Laravel.

Should I just create a new helper file or what would be the best approach?

Aug
28
2 months ago
Activity icon

Replied to Missing Required Parameters After Upgrade To Laravel 7

@sinnbeck I did what you suggested and the problem was a custom trait file. I updated this file, changed the namespace and it is working again, but I would really like to know why this was causing an error with Laravel 7 and was working fine with v6. The initial error message just does not fit here since the new user was created with a UUID before the error appeared. Maybe you have an idea?

But thanks for your time and suggestion. :)

<?php

namespace App\Traits\UsesUuid;

use Illuminate\Support\Str;

trait UsesUuid
{
    protected static function bootUsesUuid()
    {
        static::creating(function ($model) {
            if (! $model->getKey()) {
                $model->{$model->getKeyName()} = (string) Str::uuid();
            }
        });
    }

    public function getIncrementing()
    {
        return false;
    }

    public function getKeyType()
    {
        return 'string';
    }
}

Aug
27
2 months ago
Activity icon

Replied to Missing Required Parameters After Upgrade To Laravel 7

@jlrdw Nothing was changed with anything email related. I only made the necessary upgrades, also to laravel/ui, and ran composer update - that's where it stopped working. It seems the redirect to the route stopped working when signing up. I am not redirected to /email/verify but stay on /register with the error message. And again, when updating a profile with a new email address, this same procedure works just fine.

Something is wrong with the redirect in RedirectIfAuthenticated.php but the file is the same as the Laravel core, no changes made.

Activity icon

Replied to Missing Required Parameters After Upgrade To Laravel 7

So, the problem only occurs when using the register form. Upon updating the email address, the verification process works just fine and the mail is sent without any problems. There's nothing fancy going on with the sign up form. That's so weird. ._.

Activity icon

Replied to Missing Required Parameters After Upgrade To Laravel 7

@sinnbeck Mh, strange. This function is within my AppServiceProvider.php boot() function. Any dd() outside the toMailUsing fn works, but when doing this following, nothing happens except the mentioned error appears. o_O

VerifyEmail::toMailUsing(function ($notifiable) {
    dd('hello');
    ...

Update: I completely disabled the extended part and this should fall back to Laravel core and it still shows this error.

Activity icon

Replied to Missing Required Parameters After Upgrade To Laravel 7

@sinnbeck No, I'm still using the default route for verification.verify and haven't touched the VerificationController.php file. That's the code:

use VerifiesEmails;

    /**
     * Where to redirect users after verification.
     *
     * @var string
     */
    protected $redirectTo = RouteServiceProvider::HOME;

    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('auth');
        $this->middleware('signed')->only('verify');
        $this->middleware('throttle:6,1')->only('verify', 'resend');
    }
Activity icon

Started a new Conversation Missing Required Parameters After Upgrade To Laravel 7

In my 6.x code, I was successfully extending Illuminate\Auth\Notifications\VerifyEmail with the following code, in order to use my own email template:

	VerifyEmail::toMailUsing(function ($notifiable) {
            $verifyUrl = URL::temporarySignedRoute(
                'verification.verify',
                Carbon::now()->addMinutes(60),
                [
                    'id' => $notifiable->getKey(),
                    'hash' => sha1($notifiable->getEmailForVerification()),
                ]
            );

            $user = User::whereEmail($notifiable->getEmailForVerification())->first();

            return (new MailMessage)
                ->subject('Willkommen bei iGotCha.de')
                ->view('emails.verify-email', ['user' => $user, 'verifyUrl' => $verifyUrl]);

After upgrading from 6.latest to 7.latest, I encounter this error when trying to sign up:

Illuminate\Routing\Exceptions\UrlGenerationException
Missing required parameters for [Route: verification.verify] [URI: email/verify/{id}/{hash}].

As far as I can see, nothing changed regarding this method in Laravel 7 so why did this stopped working?

Aug
22
2 months ago
Activity icon

Replied to How To Update Invoice Without Deleting The Saless

Wouldn't this work?

Sale::where('invoice_id', $id)->update([
	'qty' => $request->qty,
	'price' => $request->price
	... your other data
]);

Or did I misunderstood your question?

Activity icon

Started a new Conversation Issue SSL (Let's Encrypt) For Customer Domains

I'm working on a project where clients can link a subdomain via CNAME to my server and show their content. I'd like to issue a Let's Encrypt Certificate to that specific subdomain so the client / customer won't have to. Since doing this manually would be a big overload, I would need a solution that works with either Cloudflare or AWS.

To be honest, I know this is possible, but I have no idea where to start. I assume the client would have to set two domain records (CNAME as mentioned above, plus a second one) for this to be possible.

Would be really helpful to have some insights, maybe even some sort of tutorial / manual regarding this. And help or tip is much appreciated.