wilburpowery

wilburpowery

Member Since 2 Years Ago

Alajuela

Experience Points
96,950
Total
Experience

3,050 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
648
Lessons
Completed
Best Reply Awards
47
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 20
96,950 XP
14 Sep
1 week ago

wilburpowery left a reply on Laravel 6 New Error Page. Project-one.local - OK, Localhost:3000 - Not Working

Ignition doesn't work with Browsersync right now. There's an issue in their official repo talking about it.

https://github.com/facade/ignition/issues/16

There you will also a solution meanwhile they come up with something.

21 May
4 months ago

wilburpowery left a reply on Policy Always Returns 403

Lecture::class just returns the name of the actual class not an instance.

Try using new Lecture in order to pass an instance of Lecture to your policy.

public function index() {
        $this->authorize('view', new Lecture);

        return ['data','meta'];
    }
06 May
4 months ago

wilburpowery left a reply on Paypal Donation Data

I think this would be better asked on the Github page of the package.

02 May
4 months ago

wilburpowery left a reply on Decrease The Size Of A FORGE Managed EC2 Instance

Servers > {Your Server} > Meta > Server Metadata.

There you can change the name, ssh port, ip address and other stuff.

wilburpowery left a reply on $this->request->remove() Not Working Within FormRequest

From inside a FormRequest object you should do: $this->remove('parameter_name') it's an instance of the request object itself.

wilburpowery left a reply on Decrease The Size Of A FORGE Managed EC2 Instance

You might need to manually update the IP in the Forge UI if that occurs. I haven't used EC2 much but it shouldn't be too difficult.

wilburpowery left a reply on Issue With Vue-js Modal

I've used Vue-JS-Modal quite a lot and have never faced this issue. Would be helpful to see some code.

wilburpowery left a reply on Color Picker & Productiveness

I think it's Frank DeLoupe

http://jumpzero.com/frank/

It's only for Mac OS though.

wilburpowery left a reply on Decrease The Size Of A FORGE Managed EC2 Instance

I think you'll need to do that directly in the AWS dashboard.

16 Apr
5 months ago

wilburpowery left a reply on Updating Laravel

I don't think so. Not 100% sure though. Do with precaution.

wilburpowery left a reply on Help With Custom Admin Guard With Nova

So you need to setup your new guard in config/auth.php first.

'guards' => [
        'admins' => [
            'driver' => 'session',
            'provider' => 'admins',
        ],
    ],

Then you create a providers to use in that guard also in the config/auth.php file

'providers' => [
        'admins' => [
            'driver' => 'eloquent',
            'model' => App\AdminUser::class,
        ],
    ],

Keep in mind you will also need to have an Eloquent model for your admin users table.

Lastly just register nova to use the correct guard. You can do that in config/nova.php

'guard' => 'admins',

wilburpowery left a reply on How To Create A Package For Laravel Nova?

I'm pretty sure you need a license in order to create packages/cards/fields and any other thing specific to nova.

Without a license you don't have access to the actual code so it's pretty hard to create a package without actually having a copy of Nova.

wilburpowery left a reply on Updating Laravel

Download a newer version of xampp that has php 7.*? And just install it again so it updates everything.

wilburpowery left a reply on Laracon Cancellations

Might be better to reach out to him personally via Twitter.

12 Apr
5 months ago

wilburpowery left a reply on Is There Any Way To Change The Default `User` Table That's Used For Auths

That's why you provide what model you want to use in your provider.

In your case you are specifying that your admins provider should use the App\Admin model.

wilburpowery left a reply on Multiple Eloquent Relationships Using "with"

You can use the hasManyThrough relationship.

https://laravel.com/docs/master/eloquent-relationships#has-many-through

Basically a user can have many apps, but through the relationship specified in the app_permissions table.

wilburpowery left a reply on Is There Any Way To Change The Default `User` Table That's Used For Auths

After you create your providers, next step would be to create your guards for each one.

'guards' => [
    'admin' => [
            'driver'   => 'session',
         'provider' => 'admin_users',
    ],
],

Now you can just specify your guards for each login.

Auth::guard('admin')->attempt($credentials); // login the user with the admin guard.
Auth::guard('admin')->check(); // check if the user is authenticated with the admin guard.
11 Apr
5 months ago

wilburpowery left a reply on How To Send The Verification Email To Users Who Register

Can you share your .env file? That behavior should just work out of the box.

wilburpowery left a reply on Vue.components() Vs Vue.use() And Why I Can't Get Calendar To Work.

Vue.useis used to register plugins to work with Vuejs.

Vue.component is used ot register a vue component that will be globally accesible.

wilburpowery left a reply on Use SoftDelete As Active/Inactive

That's because when using Route Model Binding, it will see that the model has the SoftDeletes trait and will apply the soft deletes global scope.

A quick way around it would be to not use route model binding and just get the record yourself in the method.

A quick way around it would be to not use route model binding and just get the record yourself in the method. quick way around it would be to not use route model binding and just get the record yourself in the method.

public function edit($company)
{
    $company = Company::withTrashed()->findOrFail($company);
    return view('companies.edit', compact('company'));
}

04 Apr
5 months ago

wilburpowery left a reply on Laravel Date Error

You need to only pass the actual created_at value to Carbon::parse(). Right now from what I can see you're passing a collection since ->get() returns a collection.

14 Jan
8 months ago

wilburpowery left a reply on Forum Feature Request - Line Numbers In Code Fields

I'm not sure there's a markdown parser that add lines in codeblocks. Although I think it would be nice, I don't think it's worth the work for Jeffrey.

wilburpowery left a reply on Laracasts Membership Pricing

New subscriptions are now 15$ per month. If you were subscribed before the price increase, you keep your initial price which was 9$. It applies for monthly or yearly subscriptions :)

wilburpowery left a reply on Passing Data From Vue.js To Laravel View

There isn't a clean way of doing it. Why exactly would you want to pass data back to the Laravel view though?

If some other place needs access to the data, maybe create a new Vue component and just share the data between both Vue components instead of passing it back to the Laravel view.

30 Dec
8 months ago

wilburpowery left a reply on How To Add Notification In A System

You can use the Notification system that Laravel already provides.

Notifications can be easily saved in your database and you can simply notify a user when a document is created.

$user->notify(new DocumentWasCreated($document));

See the docs for more info. https://laravel.com/docs/5.7/notifications#database-notifications

wilburpowery left a reply on GDRP Compliance In Spark

I don't think it does really. But that should be something you can easily build yourself.

I think maybe it would be faster to get answers if you sent an email to Taylor. Maybe it's a feature worth adding to Spark.

taylor at laravel dot com ([email protected])

wilburpowery left a reply on Rate Limiting Vs Login Throttling

ThrottlesLogins is a trait that should manage, well, throttling the login of your application. Rate limiting is a restriction for the user that specifies how many times in a given minute they can hit the route.

So if you set the login route with the rate limiting middleware, a user could only hit the route say 5 times in a given minute. So if they refresh the page a bunch of times in a minute, they would see the rate limiting take effect.

wilburpowery left a reply on Column Change Not Working In Migrate

What do you see if do php artisan migrate?

if you see the message Nothing to run or something similar, maybe your migration isn't running after you installed the dbal package.

Try doing a php artisan migrate:rollback which will rollback the latest migration, and do a php artisan migrate to re run that migration.

I'm assuming that the migration with the column change is the most recently created one.

07 Nov
10 months ago

wilburpowery left a reply on Samsung Phone And New Site

Pretty sure it's the version of your web browser. Jeffrey might be using something that isn't supported by the version of your mobile browser.

31 Oct
10 months ago

wilburpowery left a reply on Add Markdown Editor To Textarea

You can use a package like Trix from basecamp to use Markdown editors.

https://github.com/basecamp/trix

There's a bunch of editors you can use. I just find Trix super simple.

22 Oct
11 months ago

wilburpowery left a reply on Counting Clicks In Laravel

$video->increment('total_clicks');

the increment() method takes in a column name and increments it by one.

https://laravel.com/docs/5.7/queries#increment-and-decrement

wilburpowery left a reply on View Composers - Composer Class Not Found

Can't really understand your code. But can you try running in your terminal:

composer dump-autoload
19 Oct
11 months ago

wilburpowery left a reply on “Class 'Maatwebsite\Excel\Facades\Excel' Not Found” Problem

composer require maatwebsite/excel should install the package for you.

wilburpowery left a reply on “Class 'Maatwebsite\Excel\Facades\Excel' Not Found” Problem

Did you install the Laravel Excel package with composer?

If so, and you aren't using Laravel 5.5 or greater, you'll have to manually add the Service Provider and Facade in config/app.php.

Versions of Laravel prior to 5.5 don't have the Package Auto Discovery feature.

As a last resort, try composer dump-autoload and composer install again.

18 Oct
11 months ago

wilburpowery left a reply on Dom Dosen't Refresh, What Wrong ?

If you have your code in a repo, I'd be willing to take a look at it and help you out. You can just share the link if you do have it.

wilburpowery left a reply on Dom Dosen't Refresh, What Wrong ?

You need to accept the post as a parameter in the handlePostEvent() method.

handlePostEvent(post) {
    this.posts.push(post);
}

wilburpowery left a reply on Dom Dosen't Refresh, What Wrong ?

Can you see the post being added to the posts object using the Vue Devs Tools?

wilburpowery left a reply on Dom Dosen't Refresh, What Wrong ?

Why are you using the global event approach when a simple this->$emit('posted', response.data) since it's a parent/child event.

So in theory you can update your code to something like this:

// you can update your newpost.vue component to emit the event this way
}).then((response)=>{
    this.$emit('posted', response.data);
})


// on the posts.vue component you can listen for the event this way

<NewPost v-if="newpost" :user_id="this.user_id" @posted(handlePostedEvent)></NewPost>
17 Oct
11 months ago

wilburpowery left a reply on Is There A Way To Validate Blade Syntax

Can you try to run it through the Blade compiler and catch if any exceptions are thrown?

Never really tried something like this tbh ?

wilburpowery left a reply on AWS Deployed App - Viewing The Site?

If you do a ping mydomain.com from a terminal do you get the same IP from your AWS console? Maybe the DNS hasn't propagated completely yet. You sometimes might have to wait up to 24 hours.

On another end, if you enter that IP in your browser do you see your app?

16 Oct
11 months ago

wilburpowery left a reply on Manually Trigger Email Verification Mail To New User In 5.7

Yeah. $request->user() returns the currently authenticated user.

Glad I could help :)

wilburpowery left a reply on Manually Trigger Email Verification Mail To New User In 5.7

The Illuminate\Auth\MustVerifyEmail trait has a sendEmailVerificationNotification method which you can use.

So you can have something like this:

$user->sendEmailVerificationNotification(); // $user is the newly created user.
12 Oct
11 months ago

wilburpowery left a reply on Admin Package

Voyager is free!

Laravel Nova isn't free.

11 Oct
11 months ago

wilburpowery left a reply on Don't Install Illuminate/support V5.5.0|don't Install Laravel/framework V5.3.31

What version of Laravel are you using?

Seems like conflicting versions of the illuminate/support package is happening.

wilburpowery left a reply on Using Blade Directives Messes Up Final Code Indentation - Is This Normal?

However the html looks in the browser doesn't affect your site or app in any way. Each browser parses html differently.

Once the code looks good in the editor, you're good.

Don't sweat it brother! Keep up the work.

wilburpowery left a reply on Admin Package

Voyager uses Bootstrap 3.

If you're main app uses Bootstrap 4 I shouldn't be a problem either since you would not load any of your main app styles in the admin side anyways.

If you're up for it, maybe give Laravel Nova a try?

It's 99$ but totally worth it for me.

10 Oct
11 months ago

wilburpowery left a reply on File Attachment Module

The Media Library by Spatie is pretty good for this.

https://github.com/spatie/laravel-medialibrary

wilburpowery left a reply on Validation Rule, Field Must Not Contain A Pipe |

A custom validation rule?

https://laravel.com/docs/5.7/validation#custom-validation-rules

And then you can simply do a strpos check to find any | in the string passed in.

08 Oct
11 months ago

wilburpowery left a reply on Hitting 403 Page When Clicking Verify Link In Email Using New Laravel Verification (5.7)

The Email verification feature in Laravel uses the new Signed Routes feature introduced in 5.7.

Maybe that could be an issue also? It would make sense since you're getting a Forbidden error, so maybe the signed route isn't being validated correctly?

I'm just guessing right now to be honest. : /

wilburpowery left a reply on Best Practice To Secure Laravel End Points

Laravel comes out of the box with a lot of security features that protect you against the most common attacks like SQL Injection and Cross Site Request Forgery.

Laravel doesn't have this concept of plugins, you might be mistaking it with Wordpress or something similar.