777not888

777not888

Member Since 11 Months Ago

Experience Points
4,070
Total
Experience

930 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
26
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 1
4,070 XP
Oct
23
1 week ago
Activity icon

Started a new Conversation How Do I Cut Too Long Text On A Resource Index Page?

It should look something like this

id | movie | description

1 | Name | The beginning of a very long description ...

Sep
23
1 month ago
Activity icon

Started a new Conversation Modify Of Response In Laravel Nova

I have two models Post and Author. On Author resource page in Details showing about author and his posts. How I can show by default published posts only (where column 'published' is true) ?

Sep
21
1 month ago
Activity icon

Started a new Conversation Laravel Passport Not For 'users' Table

I want to use Laravel Passport for authentication of mobile users. But table with users is 'clients', but not 'users'. How change settings?

Activity icon

Started a new Conversation Laravel Nova Many To Many Relationship Table

I have 2 models - Shop and Product with many-to-many relationship. How I can show its like table, where columns is shops and rows is products. In cell must be checkboxes for attaching or detaching product to shop.

Sep
11
1 month ago
Activity icon

Started a new Conversation Cascading Select In Laravel Nova

I have:

public function fields(Request $request)
{
   return [

      Text::make('Game'),

      BelongsTo::make('Category'),

      BelongsTo::make('Subcategory')

  ];
}

How do I make a cascading selection on creation 'Game'? The field "Subcategory" should include only those that belong to the selected "Category".

Sep
01
1 month ago
Activity icon

Started a new Conversation Count Comments Of Article

in model Article.php

public function count_comments()
    {
        return $this->hasMany(Comment::class);
    }

result:

...

"count_comments": [
            {
                "id": 16,
                "article_id": 2,
                "user_id": 7,
                "text": "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.",
                "created_at": "2020-06-01T09:43:35.000000Z",
                "updated_at": "2020-06-01T09:43:35.000000Z"
            },
            {
                "id": 17,
                "article_id": 2,
                "user_id": 8,
                "text": "Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
                "created_at": "2020-06-01T09:43:35.000000Z",
                "updated_at": "2020-06-01T09:43:35.000000Z"
            }
        ]

but I need:

"count_comments": 2

Please, help

Aug
31
2 months ago
Activity icon

Started a new Conversation Get Count Of Items In Relationship

I have

public function comments()
{
    return $this->hasMany(Comment::class);
}

How I can get count of comments?

I need, for example, public function count_comments(), which will return count of comments.

Jul
23
3 months ago
Activity icon

Started a new Conversation Usage DTO With Arrays In Request

I have array in request

0 => [
	"id" => "1",
	"name" => "name1"
]
1 => [
	"id" => "2",
	"name" => "name2"
]

How transfer it to Controller by function 'fromRequest' ?

Jul
21
3 months ago
Activity icon

Replied to Sanctum - Route [login] Not Defined

Just create

Route::get( '/some_url', function () {
        return "Token is wrong";
    }
)->name('login');
Jun
15
4 months ago
Activity icon

Started a new Conversation Push Notifications

How I can create push notifications for mobile devices on Laravel ?

Jun
09
4 months ago
Activity icon

Replied to How To Make An Array From Other Arrays?

Many thanks to everyone who answered!

Jun
08
4 months ago
Activity icon

Replied to How To Make An Array From Other Arrays?

@bugsysha , for example

$first = [ 'first1', 'first2', 'first3', 'first4', 'first5', 'first6'];
$second = [ 'second1', 'second2', 'second3'];
$third = [ 'third1', 'third2', 'third3'];

$result = [ 'first1', 'first2', 'first3', 'second1', 'third1', 'first4', 'first5', 'first6', 'second2', 'third2', .....]

Activity icon

Started a new Conversation How To Make An Array From Other Arrays?

There are three arrays from which I need to form one, according to the following rule. First, there must be 3 values from the first array, then one value from the second array, then one value from the third array. Then again, everything repeats in a circle. How to do it?

Jun
07
4 months ago
Activity icon

Replied to How To Count The Number Of Likes For Each Product In The Table?

Thank you very much, it works!

I want to ask more how to take into account dislike. It is necessary if the product has 'dislike' so that it reduces the number_of_likes by 1. That is, you need to calculate the product rating. It can be positive, negative or zero.

Activity icon

Started a new Conversation How To Assemble A Collection From Different Collections

I have three collections. I need to get a new collection from them. From the first you need to take 3 values, from the second one, from the third one. Then again 3 from the first and so on.

Activity icon

Started a new Conversation How To Count The Number Of Likes For Each Product In The Table?

I have a table of products with likes

Likes

id

product_id

type ('like' or 'dislike')

I need to get such a collection

product_id

number_of_likes

May
21
5 months ago
Activity icon

Awarded Best Reply on Laravel Storage

SOLVED

return Storage::disk('local')->download('address/' .$id . '.xlsx' );

May
20
5 months ago
Activity icon

Started a new Conversation How To Change Background-color Of Row On Index Page Of Resource?

Depending on the content in the "status" column, the row should be of a certain color. For example, if the 'status' is 'null', then the row is yellow.

May
19
5 months ago
Activity icon

Replied to How To Change The Color Of Some Rows On The Resource Page?

How to add class to that row?

Activity icon

Started a new Conversation How To Change The Color Of Some Rows On The Resource Page?

I need the entries from the database in which the 'points' field is not null to be displayed in red? How to do it?

Activity icon

Started a new Conversation How To Make A Scoup?

How I can make a scoup for showing soft-deleted items from database?

May
18
5 months ago
Activity icon

Started a new Conversation How To Show Trashed Items?

I disabled filter by adding in resource:

public static function softDeletes()
    {
        return false;
    }

How I can show deleted items on page of resource by default?

And how highlight it with a different color?