So I have 2 tables, 1 table for storing debt(id, amount, category_id) and 1 table for storing debt categories(id, name). I am trying to pull the data for each month from the debt table, but I also have a search which seems to not work, I guess I am missing something. I have the following: Debt Model: This wor…
Tag: laravel
PHP Fatal error: Allowed memory size of 1610612736 bytes composer update
I want to run the command composer update to my Laravel project by running the below command. When I try to run composer require I am getting the out of memory error. Answer Run This will give you the path to composer like “/usr/bin/composer” Then use that path in the command below to overcome the…
Laravel logoutOtherDevices with Fortify
I built a Laravel app with Fortify authentication. There was a requirement that when the users log in, they should be logged out from all other devices. In the Laravel documentation, it is mentioned that I can use the Auth::logoutOtherDevices($password); method. But it is not clear how to use this with Fortif…
Plesk PHP emails with laravel are not receiving DKIM signature
When I send email from the Round Cube web client, the email is signed signed with DKIM. However when a website sends email via Laravel it is not signed with DKIM. I’m sending two emails one with laravel notifications and one with mail. Both don’t receive a DKIM signature. I’ve turned on the …
laravel dd return empty value
all… My problem here is when i want to return values with dd($datasave), return all other but, one is lost my code (first Controller) my Solicitudes.php(Model) and my view(not all only the part that is not returning… ) but when i want to see the returning values result: AppModelsSolicitudes {#1259…
Apache ignore headers and status codes from Lumen
I have app based on Docker and microservices. Angular, MySQL, Lumen + Apache. Unfortunately on Docker my API doesn’t send any header or status code. Any response is 200. I tried change HTTP server to NGINX but for nothing. I have no idea how can i fix this issue. Apache config Dockerfile docker-compose.…
Laravel – Name from foreign key doesn’t show in my blade
I’m making a project where I use the foreign key from a shop in products. The foreign key works but when I want to show it in my blade by using $product->shop_id->shop_name, it gives a blank spot. My foreign key is named ‘shop_id’.Product page without shop name This is my code: Product…
Laravel 8.15.0/Jetstream – How to register new blades x-jet-newblade?
I am just doing my very first steps with Laravel 8 and found a problem that I can not solve. /var/www/html/laravel/resources/views/dashboard.blade.php: If i create a new blade in the same directory (f.e. the form.blade.php) with the same code as above but with <x-jet-subform/> instead of <x-jet-welco…
jQuery change other value if main input form is (on.change)
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…
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…