Trong Laravel bạn có thể custom helper theo ý muốn của bạn và gọi nó ở bất kì đâu trong project giống như là cách gọi của route, blade view, models, controller... đây thực sự là một giải pháp tốt để t...
1. Tại sao nên dùng Laravel mix? Trong các dự án thì việc viết code chỉ là một phần, sau khi viết code xong chúng ta cần làm sao để tối ưu code, tối ưu trang web của chúng ta. Với những dự án nhỏ t...
ProblemI’m using Apache Web Server that has the folder owner set to _www:_www. I keep forgetting about the best practice when it comes to file permissions, for example when I create a new Laravel 5 pr...
Tôi có thể hướng dẫn bạn cách triển khai ứng dụng Laravel sử dụng GitLab CI/CD và Docker trên CentOS. Bạn cần thực hiện các bước sau:Cài đặt ACL trên CentOS bằng lệnh sau:yum -y install acl
Tạo một n...
You're resetting $grand_total to 0 in each loop iteration. You should initialize $grand_total before the loop starts and then add $sub_total to each iteration.
@php
$grand_total = 0;
@endphp
@for...
The error message you're encountering suggests that Vite, the build tool you're using, is having trouble parsing the JavaScript syntax in your project. Specifically, it seems to be related to handling...
I'm looking for a way to render my map in React without having the API key in the frontend
You can't, but that's ok. What you do instead if add URL restrictions to your API key
The problem is you have the same code in the create comment function.
public function CreateComment( Request $request)
{
// create a function that inserts data to data base ( create a...
The issue you're encountering seems to be related to how you handle the pagination of your table data and the refreshing of the table content using AJAX. It appears that when you refresh the table wit...
Since the month names in your example are simple strings and hold no information about order per se, its probably best to build a list that only contains months "greater" or "lesser" than the month in...
To get random records without duplication using Laravel's inRandomOrder() method, you can use distinct() method to get unique records
$questions = Question::inRandomOrder()
->limit(50)
->distinct()
->...
Lost your password? Please enter your email address. You will receive a link to create a new password.
Donate
Thank you for visit here to donate to us, you think it's just a cup of coffee, but with us, it's really meaningful and contributes to help this blog grow more and more.
You can support us in one of the ways below: