bohowe

bohowe

Member Since 3 Months Ago

Experience Points
670
Total
Experience

4,330 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
670 XP
Dec
15
1 day ago
Activity icon

Replied to Uppercase Lowercase Login

Thanks, that works for me

Activity icon

Started a new Conversation Uppercase Lowercase Login

I am allowing users to register and then login using username / password. If I login user with uppercase and lowercase username it always login. At register it seems I can use uppercase and lowercase

Is this how its supposed to be?

Sep
28
2 months ago
Activity icon

Replied to Vue Component Filter Not Working

How do you write readable code so fast for me? Can you teach me?

Activity icon

Replied to Eager Loading Question

Thanks for the quick help!

Activity icon

Started a new Conversation Eager Loading Question

I have multiple relations stacked together. When I do something like below will it load all relations or only the specified relation? will Laravel load cars.parts and cars relationships or only cars.parts?

$user->with('cars.parts')

Thanks in advantage

Activity icon

Started a new Conversation Vue Component Filter Not Working

<script>

export default {
    data:function() {
        return {
            products:[],
            selectedCategory: ["0"],
        }
    },
    computed: {
        filteredProduct: function() {
            var app = this;
            var category = app.selectedCategory;

            if(category.includes("0")) {
                return app.products;
            } else {
                return app.products.filter(function(p) {
                    return category.includes(p.category_id);
                });
            }
        }
    },
    mounted() {
        var app = this;
        axios.get('/products')
            .then(function (response) {
                app.products = response.data;
            })
            .catch(function (response) {
                console.log(response);
                alert("Could not load");
            });
    }
}

</script>

Can someone help me with filtering by category?

Activity icon

Started a new Conversation The Bootstrap/cache Directory Must Be Present And Writable

Laravel says 'The bootstrap/cache directory must be present and writable' error when deploying. How can I fix this?

Sep
21
2 months ago
Activity icon

Started a new Conversation Raw Query

Hi,

How can I convert this query to Eloquent?

SELECT *, (select ga.score FROM game_activities as ga WHERE ga.creator_id = game_activities.creator_id AND ga.type=0 AND ga.game_id = game_activities.game_id) as start_score FROM `game_activities` WHERE game_id=37 and type=2 GROUP BY creator_id

Thanks in advanced!

Activity icon

Started a new Conversation Policy Question

Policy method does not work for me. I want to block certain users fro creating a post. This is how my code looks like:

PostPolicy.php

public function create(User $user)
{
    if ($user->role == 'creator') {
        return true;
    }
}

PostController.php

public function create()
{        
    $this->authorize('create');

    return view('posts.create');
}

What is wrong with this?

Aug
31
3 months ago
Activity icon

Replied to Noob In Css, Please Help

So simple................

Activity icon

Replied to Hourly Task Scheduled

Setting the timezone works for me! Thanks for all the help!

Activity icon

Replied to Hourly Task Scheduled

Thanks for the reply. This does work, but it still seems to be in the framework!

Activity icon

Started a new Conversation Noob In Css, Please Help

I'm a noob in CSS and I want to override a variable in scss. To be more specific a variable in bootstrap scss. How can I do that. I added the following in my variables.scss.

$grid-gutter-width: 20px;
$link-color: #888888;

My app.scss file looks like this

@import url('https://fonts.googleapis.com/css?family=Nunito');

@import '~bootstrap/scss/bootstrap';


@import 'variables';

I did run npm run dev and npm run prod, but nothing works. Any clue why this is not working?

Activity icon

Started a new Conversation Hourly Task Scheduled

Hi,

I have some commands I want to run hourly at a certain minute, but it seems they are not fired at all. Any idea how to fix this? When I run commands using everyFiveMinutes for example it works just fine. Only hourlyAt doesn't work for me.

Aug
20
3 months ago
Activity icon

Replied to Stuck With Testing

Thanks! I'm that dumb. I should have figured that out as well.

Aug
19
3 months ago
Activity icon

Started a new Conversation Stuck With Testing

Hi,

I started making tests and I'm stuck. I already had some great help this evening!

I have this test. but it doesn't work

function testUserCan'UpdateAnotherCat()
    {
        $cat= factory(Cat::class)->make();

        $this->patch(route('timesheets.edit', [$cat]), ['name' => 'Kitty'])
        ->assertRedirect('/cats');
    }

I'm using a factory and controller call, but it still doesn't work. I expect it to redirect somewhere, but it's not doing that. I get an error.

Activity icon

Started a new Conversation Or Method Not Working

Hi,

I have this view that uses or to display some data. So for example this

{{ $status or 'Unknown' }}

But this doesn't work. I get undefined variable error.

Activity icon

Started a new Conversation Multiple Counts

I have some tables that have relationships with each other. Cat => CatShow and Cat => CatAttribute. Both related tables have a cat_id.

I want to count the number of shows and attributes.

Can someone help?

Activity icon

Started a new Conversation Only Show Own Created Categories

I have a list of categories that looks like this

public function index()
{
    $categories = Category::orderBy('updated_at', 'desc')->paginate(30);

    return view('categories.index')->with('categories', $categories);
}

I only want to show the categories created by the current user. How can I do that?