moriarty

Member Since 2 Months Ago

Experience Points
600
Total
Experience

4,400 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
3
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.

  • Community Pillar

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

Level 1
600 XP
Apr
08
1 week ago
Activity icon

Replied to Laravel Sum Relationship Column

Hello again, now I noticed withSum is happening for one model but it gives an error on the second model. So withSum ('primaryModal.secondaryModal', 'column_name') does not work. How do you know the usage for the nested model?

Activity icon

Replied to Laravel Sum Relationship Column

Thank you for your answers, but I have read the documentation, but despite following the recommendations, I get the same error.

Activity icon

Replied to Laravel Sum Relationship Column

$query = Payment::with('getSale.getStock')->withSum('getSale.getStock', 'purchase_amount');

Error: Call to undefined method App\Models\Payment::getSale.getStock()

Payment relationship:

public function getSale() { return $this->belongsTo(Sale::class, 'sale_id', 'id'); }

Activity icon

Started a new Conversation Laravel Sum Relationship Column

Hi, I want to make an operation to calculate the cost of the products for an application developed. I want to operate between 3 models. Payment, Sale, and Stock.

Payment::with('getSale.getStock:id,purchase_amount')->get();

I can get the data this way, but as I said above, I want to get the sum of the "purchase_amount" column in the "Stock" model.

I can share more details if it's not clear enough

Mar
20
4 weeks ago
Activity icon

Replied to Livewire Select2 Or Selectpicker

I did not use wire:ignore. Select box change is not detected and a null value is returned.

Activity icon

Replied to Livewire Select2 Or Selectpicker

I tried it like this, it works, but the selected data in the selection box is not sent after submitting the form. The return value is null. How can I fix this?

Mar
19
4 weeks ago
Activity icon

Started a new Conversation Livewire Select2 Or Selectpicker

I cant use select2 or selectpicker js libraries with Livewire. Select2 and selectpicker libraries are destroyed after form submit action. If the validation is incorrect after submitting the form, the libraries templates on form elements disappears.

Does anyone have a suggestion why am I having this problem?

Feb
10
2 months ago
Activity icon

Replied to Real-time Chat Application

Unfortunately not, then the only option is pusher?

Activity icon

Replied to Real-time Chat Application

So, what is the stable option for the chat application that requires high level user participation?

I am unsure between paying Pusher and rising server costs. I am not sure which way it will be more suitable and stable, Thank you for the answer

Activity icon

Started a new Conversation Real-time Chat Application

I will real-time chat application. I have hesitations about which infrastructure to use for this.

1- Pusher 2- Realtime Database and socket.io (Firebase) 3- Livewire

I want it to be a healthy infrastructure for an average of 10 thousand people to use daily. It doesn't feel realistic to do it with Livewire, but the pusher is a little costly. How can I make a chat application that will consume minimum resources of the server for the use of approximately 10 thousand people per day? Do you have any suggestions?

If you have any other suggestions other than these solutions, I am looking forward to you, thank you in advance.

Feb
07
2 months ago
Activity icon

Replied to Livewire And Turbolinks Why Is Not Stable

You are right, thank you again for your answer

Feb
06
2 months ago
Activity icon

Replied to Livewire And Turbolinks Why Is Not Stable

Thank you for true answer. Is there an alternative option for the Turbolinks framework? A framework that can be used without route adjustment, just like turbolinks

Activity icon

Replied to Livewire And Turbolinks Why Is Not Stable

<script src="http://127.0.0.1:8000/js/app.js?v=2rt" type="text/javascript" data-turbolinks-eval="false" data-turbolinks-suppress-warning></script>
<script src="http://127.0.0.1:8000/js/custom.js?v=rrk" type="text/javascript" data-turbolinks-eval="false" data-turbolinks-suppress-warning></script>

Doesn't read the files import

Activity icon

Started a new Conversation Livewire And Turbolinks Why Is Not Stable

Hello everyone, I use livewire and turbolinks (SPA) for a project. Javascript actions do not work when the page changes. Anyone have any suggestions on this issue? (The javascript codes in the template are working but the invoked js files do not work)

Laravel 8.12 / Livewire 2.3 / Turbolinks 5.2