Member Since 2 Months Ago
4,400 experience to go until the next level!
In case you were wondering, you earn Laracasts experience when you:
Earned once you have completed your first Laracasts lesson.
Earned once you have earned your first 1000 experience points.
Earned when you have been with Laracasts for 1 year.
Earned when you have been with Laracasts for 2 years.
Earned when you have been with Laracasts for 3 years.
Earned when you have been with Laracasts for 4 years.
Earned when you have been with Laracasts for 5 years.
Earned when at least one Laracasts series has been fully completed.
Earned after your first post on the Laracasts forum.
Earned once 100 Laracasts lessons have been completed.
Earned once you receive your first "Best Reply" award on the Laracasts forum.
Earned if you are a paying Laracasts subscriber.
Earned if you have a lifetime subscription to Laracasts.
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.
Earned once you have achieved 500 forum replies.
Earned once your experience points passes 100,000.
Earned once your experience points hits 10,000.
Earned once 1000 Laracasts lessons have been completed.
Earned once your "Best Reply" award count is 100 or more.
Earned once your experience points passes 1 million.
Earned once your experience points ranks in the top 50 of all Laracasts users.
Earned once your experience points ranks in the top 10 of all Laracasts users.
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?
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.
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'); }
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
Replied to Livewire Select2 Or Selectpicker
I did not use wire:ignore. Select box change is not detected and a null value is returned.
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?
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?
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
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.
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
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
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