FreelandKate

FreelandKate

Member Since 5 Months Ago

Moskow, Russia

Experience Points
22,870
Total
Experience

2,130 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
194
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 5
22,870 XP
May
26
4 months ago
Activity icon

Commented on Vue Ajax Requests With Axios

axios request:

axios.get('/skills').then(response => this.skills = response.data);
May
25
4 months ago
Activity icon

Commented on Named Slots In A Nutshell

I use Vue.js v2.6.11 and slot is working just fine!

Activity icon

Commented on Component Communication Example #2: Event Dispatcher

You could rather change index.html from

<coupon @applied="onCouponApplied"></coupon> to <coupon></coupon>

May
24
4 months ago
Activity icon

Commented on Components Within Components

Jeffrey explained that in the Sublime series: https://laracasts.com/series/sublime-text-mastery

May
23
4 months ago
Activity icon

Commented on Basic Data Binding

This content worth to pay for!

May
17
4 months ago
Activity icon

Commented on Automatic PSR-2 Formatting

Could you make it work on Vim?

May
16
4 months ago
Activity icon

Commented on PeepOpen

Peepopen is for the MacVim only, which is not available in Windows. You need to search for the Windows supported plugins.

By the way, it's not supported for the Mac OS Catalina as well :(

So we need to stick to ControlP or find the other option.

May
14
4 months ago
Activity icon

Commented on Faster Browsing With CtrlP

the same to Mac via brew

brew install ctags
May
13
4 months ago
Activity icon

Commented on A Prettier Vim

@JeffreyWay there are 22 lessons in this series, but I've noticed that the right side bar shows only 17

Activity icon

Commented on Mappings And Commands

What's the difference between :tabc, :bd and :q if you apply this to the current tab?

Activity icon

Commented on Instant PHPUnit Feedback And Workflow

I prefer package PHPUnitKit

May
11
4 months ago
Activity icon

Commented on Better PHP Workflow

To make a new snippet in Sublime 3, go to Tools->Developer->New Snippet

May
10
4 months ago
May
08
4 months ago
Activity icon

Commented on Value Objects And Mutability

A new instance of the class

Activity icon

Commented on Value Objects And Mutability

I've catched an error by calling throw new InvalidArgumentException('');

Class 'http\Exception\InvalidArgumentException' not found

So i had to call the function with \

throw new \InvalidArgumentException('');
May
07
4 months ago
Activity icon

Commented on Objects

Because in this case you will always have only 1 member (which has been added last). Just test it to understand.

Activity icon

Commented on Classes

@johngna How did you get the discount?

May
06
4 months ago
Activity icon

Commented on Many To Many Polymorphic Relations

How to make the test to change your data in Database?

Without use RefreshDatabase; it throughs an error:

SQLSTATE[HY000]: General error: 1 no such table: users
Activity icon

Commented on Has Many Through

Thanks! I was thinking about it :)

May
05
4 months ago
Activity icon

Commented on Many To Many

Since Laravel 7 you can make it easier:

$table->foreignID('user_id')->constrained()->onDelete('cascade');
Activity icon

Commented on Goodbye And Next Steps

Thank you @jeffreyway Awesome series!

May
04
4 months ago
Activity icon

Commented on File Storage And Custom Avatars

Additionally, Jeffrey has PhpStorm series where he explains this and much more

https://laracasts.com/series/how-to-be-awesome-in-phpstorm

Activity icon

Commented on File Storage And Custom Avatars

I've checked russian and it validates but does not store it to the database. Any ideas how to validate that?

Activity icon

Commented on Build The Follow Form

The same idea

Activity icon

Commented on Build The Follow Form

@thearchitect Very nice!

Activity icon

Commented on Build The Follow Form

@untymage nice method, thanks!

Activity icon

Commented on Construct The Profile Page

Very nice recommendation @kladdelic. But as Jeffrey said in the following video, you need to add transform class as well, so it would work

	class="absolute bottom-0 transform -translate-x-1/2 translate-y-1/2" 
	style="left: 50%;"

Activity icon

Commented on Build The Follow Form

If you wonder how in PhpStorm you can create new trait followable then just hover over the Followable, the menu will appear, then choose create class. Shortcut for Mac is ⌥+⇧+⏎

May
03
4 months ago
Activity icon

Commented on Construct The Profile Page

Strange. For me route('profile', $tweet->user) works in this case

Activity icon

Commented on Build A Following

Need to restart Tinker every time you change the code

Activity icon

Commented on Make The Timeline Dynamic

You can even use auth()->id() method

Activity icon

Commented on Design The Timeline

@section is included to the upper level's file @include on the contrary, includes some file itself. Include schould be stored in a separate file, but section not, it's like the variable that contains the block of html.

Activity icon

Commented on Design The Timeline

For those who need a text for the comment:

Presumably, if you're watching this series, you've already made the decision to embrace all that Laravel has to offer. However, if you're still on the fence, give me just a moment to sell you on why I believe Laravel is the best framework choice in the PHP world.
Activity icon

Commented on Design The Timeline

I used square images from this website: https://picsum.photos/

The link to the square image sized 40px would be:

https://picsum.photos/40

Static image for the same user:

https://picsum.photos/seed/{{ $user->email }}/50
Activity icon

Commented on Roles And Abilities

Jeffrey explained that in the previous lesson. In case you return, then the other check (if exests) will not be called. For example, the admin can do anything, so first you check if the user is an admin and then if not (function did not return anything), you check if has the needed role.

        Gate::before(function (User $user) 
        {
            if($user->is_admin)
            {
                return true;
            }
        });

        Gate::before(function ($user, $ability)
        {
            if ($user->abilities()->contains($ability))
            {
                return true;
            }
        });
May
02
4 months ago
Activity icon

Commented on Middleware-Based Authorization

Jeffrey does a great job. It takes time to make something of that hight level so we could spend less time learining quite complicated stuff. Thanks, @jeffreyway for your awesome series.

Activity icon

Commented on Authorization Filters

If you will return false then the other check - if the user is the author of the conversation - will not be called.

Activity icon

Commented on Limit Access To Authorized Users

You can go even further by using the seed, as Jeffrey did in the lesson:

php artisan db:seed --class=ConversationsSeeder

and the class itself:

<?php

use Illuminate\Database\Seeder;

class ConversationsSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        factory(App\User::class, 5)->create();
        factory(App\Conversation::class, 5)->create();
        factory(App\Comment::class, 15)->create();
    }
}
Activity icon

Commented on Limit Access To Authorized Users

It seems that you did not add a method User() to your Conversation Model

namespace App;

use Illuminate\Database\Eloquent\Model;

class Conversation extends Model
{
    public function user()
    {
        return $this->belongsTo(User::class,'user_id');
    }
}
Activity icon

Commented on Limit Access To Authorized Users

We pass an inctance of the class 'ClassName' that triggers the desired function of the class, named 'ClassNamePolicy'

Apr
29
4 months ago
Apr
28
4 months ago
Activity icon

Commented on Testing In PHPStorm

Any ideas why do i get an error by running phpunit?

-bash: phpunit: command not found
Activity icon

Replied to How Can I Edit Comments Under Laracast Lessons?

Thanks, Jeffrey! Now i can see that and finally could edit my comments :)

Apr
27
5 months ago
Activity icon

Started a new Conversation How Can I Edit Comments Under Laracast Lessons?

How can I edit my comments under Laracast lessons? As well as delete them, like the other's comments and reply to them? I could not find this possibilities but i can see how the others do so.

Thanks in advance for your reply!

Activity icon

Commented on Live Templates

I did not understand how schould we convert PhpStorm style to HTML to make it work?

        {{ Form::label('$NAME$', '$VALUE$:') }}
        {{ Form::text('$NAME$', null, ['class' => 'form-control']) }}
Apr
25
5 months ago
Activity icon

Commented on Minimalism

In my case the path to the colors directory is:

~/Library/Application\ Support/JetBrains/PhpStorm2020.1/colors

Just check your version of the Php Storm

Activity icon

Commented on CSRF Attacks, With Examples

I tested the POST request from attacker site, it returns the error but the user still logs out :(

Apr
22
5 months ago
Activity icon

Commented on Asset Compilation With Laravel Mix And Webpack

The easy way is to install Homebrew: https://brew.sh/ and then run 'brew install node'