I am using Laravel and javascript + jQuery then, what I need is if I click the select option value, it will change the other form input based on (count value). Here is my preview image : nah if i click the value of select option in “Tipe Biaya” column, it will count jumlah column*biaya operational…
Regex match specific string without other string
So I’ve made this regex: to match only the first of the following two sentences: discount of €50,20 on these items This item on sale now for €30,20 As you might’ve noticed already, I’d like the amount in the 2nd sentence not to be matched because it’s not the discount amount. But IR…
How to set Image Resolution in uploaded Image in Laravel Intervention
Please, anyone, help me I want to set the Image Resolution to 300dpi for the uploaded image using Image Intervention. Any alternate solution is also welcome. What I want: Upload Image -> Resize image to (100 X 100) -> Set image size to less than 30KB -> and set image resolution to 300dpi -> auto d…
PHP find similar ID’s (EAN codes) and show if excist
I have a database with different kind of products that have similar ID’s (EAN codes). I’m trying to print a list of all similar codes so I can import them and connect them to the same product. Example: Product Y has ID 190198001795 and 0190198001795 Product X has ID 190198001780, 0190198001780 and…
How can getdate[“weekday”] start from Monday instead of sunday?
I need to start the “weekday” of getdate() to Monday instead of Sunday, is there a way to do this? Here is my code, don’t worry about the parameters in validatePlanningVendeur the problem is when i try to get the current date arret, so that it can validate from Monday till arret. You might n…
Upload image to AWS s3 storage from Laravel showed Heroku Server 500 Error
I’ve added AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION AWS_BUCKET in Heroku and the according value to Heroku Config Vars. Then, I uploaded image to ‘/images’ folder on s3. After that, Heroku server showed the following error: server error 500 title server error 500 specific I…
PHP: How to use STDIN to get secret input for passwords on Linux based systems
What is the most up-to-date way to get input from STDIN but not see what was typed in PHP CLI mode, so things like passwords are not shown? Difference being, only on Linux based systems like Ubuntu, …
solving problems in session? [closed]
I have created two pages , one is index.php and admin.php . In the first page or index.php , i have created a loggin form so that i can access the admin.php page trough the loggin or like this enter …
Laravel object value with Blade statement does not work if model has accessor
i have an Laravel object model with accessor: and i want to print the nomeAlimento value in a Blade page with Blade statement, for example: but the value inside the table cell is not printed, as if $planRow->foodName is null. In reality it is not empty, in fact if I print {{$planRow}} the structure of the …
How to add index in laravel blade html attribute while calling?
This is my controller code – $date = $request->input(‘date’); $reports = CovidUserResponses::where(‘recorded_date_time’, $date)->get(); $questions = CovidQuestions::orderBy(‘id’)->get();; …