EN VI
Posts (5)
2022-04-24 13:05:58
Laravel Thêm Helper Để Định Nghĩa Hàm(Function) Và Hằng(const) Sử Dụng Mọi Chỗ
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...
0
2022-05-23 09:44:29
Laravel mix là gì? Tại sao nên dùng Laravel mix? Cách sử dụng Laravel mix như thế nào?
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...
0
2022-06-04 09:58:46
PHP Laravel - How to set up file permissions when deploy in host vps centos linux
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...
0
1206dev Admin
2023-03-28 19:16:40
Step by step to install git CI/CD on centos laravel project
* On server centos:yum -y install acl sudo adduser deployer sudo setfacl -R -m u:deployer:rwx /var/www- generate ssh keyssh-keygen -t rsa -C "deployer" -f ~/.ssh/id_rsa -P ""- As the deployer user o...
0
1206dev Admin
2023-05-26 23:47:16
Các bước cài đặt git CI/CD trên dự án centos laravel chi tiết
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...
0
Questions (10)
2024-03-10 13:00:04
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...
Tags: PHP Laravel foreach
2024-03-10 19:00:04
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...
Tags: Laravel vue.js inertiajs
2024-03-10 21:00:06
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
Tags: Reactjs Laravel mapbox
2024-03-11 06:30:03
JSON_CONTAINS_PATH would do the trick, e.g. select * from `units` where json_contains_path(`prefixes`, 'one', '$."abc"') limit 1
Tags: PHP MySQL Laravel
2024-03-12 11:00:05
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...
Tags: PHP MySQL Laravel
2024-03-12 14:00:07
Replace your Controller Code: return DataTables::of($data) ->addIndexColumn() ->editColumn('HAWB', function ($row) { $url = route('shipment_tracking') . "?trknbr=" . $row->HAWB;...
2024-03-14 15:30:05
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...
Tags: Javascript json ajax
2024-03-14 18:30:05
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...
Tags: PHP Laravel
2024-03-15 13:00:05
You can search the property Sticky scroll in vscode settings to disable it
Tags: html css Laravel
2024-03-17 15:30:07
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() ->...
Tags: PHP Laravel laravel-10

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login