EN VI
Posts (5)
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