I need to print only the records for the month of May I get them with the variable I need to see only May results, how do I do it? Answer You can use if condition or
Tag: laravel-5
Laravel 5 Property [userType] does not exist on this collection instance
I keep getting property [userType] does not exist error when Im trying to make log in condition here is my Controller code below. I also tried to make Auth controller but I just keep getting the same error from this. and here is my model code anyway on how can I fix this? Please show me the correct way to
how to set color warning when status “Waiting Confirmation”?
i want to make warning label for “waiting confirmation” status, the code as below : Answer Apologize to you first as I’m not a Laravel person, but this would be solve by just basic if-else. The code would look like this (you may encounter some syntax error but the idea is there):
Error Message: “The GET method is not supported for this route. Supported methods: POST”
when i access to endpoint this http://localhost/newsapp_api/public/api/register,this message is showed “The GET method is not supported for this route. Supported methods: POST”. look to the …
Prevent truncating of preceeding zeros in Javascript
I am trying to pass variable to a JavaScript function that then makes an Ajax request using the variable. My problem is that if the value of the variable starts with zeros, the zeros are truncated. For example, if the value is 00056, what is sent for an Ajax call is 56 Here is what I am doing How do
PhpSpreadsheet Reader Exception Failed to load /root_dir/public/laravel-excel-fLRGTlw9uEE2XRz0k1fXdcg2wfs2RWy7.html as a DOM Document
I have tried everything for resolving this issue but nothing worked. php artisan cache:clear php artisan view:clear php artisan route:clear php artisan config:clear Also Updated my Dependencies …
preg_match() expects parameter 2 to be string, object given
i got this error when i’m trying to send multiple email, and i also want to pass a data to mail view. here is my controller: and here is my mail view: i don’t understand where i’m doing wrong, thankyou! Answer You don’t need to wrap the result of your query in an array. Also if you only want the
Why is my $items doesn’t hold a group of $item? Laravel 8 Ecommerce
I’m from the same post here but I’ve found the root problem why is my quantity won’t increment but I don’t know how to solve this. The problem is at my isset function (in Cart.php), because I tried to echo something there and just realized the function isn’t running. This is the error pops up when I removed isset function
get value 1 – 2 – 1 – 2 – 1 in for loop php
I am trying to get value like 1-2-1-2-1-2 from for loop I tried code like this $c = count($response[‘video’]); // 2 $currentPage = 2; $k = 1; for ($i=$k; $i <= $currentPage ; $i++) { $b = $i &...
How to display the first image name from a string of image names
This is my array. I want to print the first image name from the key [image_names] [prop] => Array ( [0] => Array ( [id] => 1 …