HFH

HFH

Developer at Homes for Heroes

Minneapolis, MN

Member Since 4 Years Ago

Experience Points 2,870
Experience
Level
Lessons Completed 96
Lessons
Completed
Best Reply Awards 0
Best Answer
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

01 Dec
11 months ago

HFH started a new conversation Laravel 5.5 & Bootstrap 4 Pagination Issues

I've seen a number of threads regarding the class changes in pagination from BS3 to BS4, but I can't seem to get to the bottom of it on my own app.

Using a simple pagination in my controller with:

$users = DB::table('users')->orderBy('created_at', 'desc')->simplePaginate(5);

And then rendering the pagination buttons as such:

{{ $users->render() }}

Gives me this: /Users/austintoddj/Desktop/Screen Shot 2017-12-01 at 1.32.55 PM.png

HFH started a new conversation L5.5 Form Validation: Exclude Password From User Info Update If Empty String

Tried to be self-explanatory in the title.

Currently using Laravel 5.5

I have a basic user update form with the name, email, password and password confirmation present.

Here is the current validation and submission:

    // Validate the request data
        $this->validate($request, [
            'name' => 'required',
            'email' => 'unique:users,email,'.Auth::user()->id.'|required|email',
            'password' => 'nullable|string|min:6|confirmed'
        ]);

        // Update the user profile in the database
        Auth::user()->update($request->all());

    // This is where an integrity constraint violation gets thrown, because the database can't save a null password
        

The problem I run into is that I never want null to be passed to the database. Basically, if the user wants to only update their name/email and not their password, they can do so.

HFH left a reply on User Update Password Validation

@Snapey If you use nullable though, are you telling the application that your password can be null and then when you do $user->update($request->all());, it'll run into integrity constraint violations?

22 Jul
3 years ago

HFH left a reply on Moving Laravel To Production - Is It Possible?

Any time I move a Laravel application to production, I run a composer update and a php artisan clear:cache.

composer update
php artisan cache:clear

HFH started a new conversation Sweet Alerts In Laravel 5

I noticed a while back that @jeffery_way started using Sweet Alerts here on Laracasts. I've recently included them into my project and really like them. However, I'm trying to have them display after a user logs in, and after a user logs out. I currently am using Laravel 5.1. Any help finding what routes/controllers I should modify would be greatly appreciated!

HFH left a reply on Moving Laravel To Production - Is It Possible?

  1. I've run into the WSOD numerous times. Changing the permissions of Storage/ fixed that particular problem for me.
sudo chmod o+w -R Storage/