Category "laravel"

Why does Laravel say that my "update" method is not a support route?

I am getting this error when I try to use update method from my routes. The UPDATE method is not supported for this route. Supported methods: GET, HEAD, POST, D

Search in a non-existing table - relationship

I try to make hasMany relationship in Laravel and I have this problem. If I rename table name in Model to test, relationship works fine, seraching by my new tab

How to Get Value From Trumbowyg Textarea on Livewire

I created textarea form element using Livewire, I use Trumbowyg to make WYSIWYG. After sending data trhough submit on livewire, I coundn't get data from textare

Why new laravel 9 project with github shows "git: 'auth' is not a git command. See 'git --help'"?

I created a new project with laravel new testproj --github, in order to create a repository in github, but it keeps saying git: 'auth' is not a git command. See

Is there a way of formatting failed output from Laravel's assertSee() test?

Laravel has several built-in assertions that allow you to query the Response from a Request. public function testWebpage() { $response = $this-&

how to send error emails to the developer in laravel 8 App

I am using laravel "laravel/framework": "^8.75" version. When deployed the app turn APP_DEBUG=false but users get errors but they can not know what is wrong and

Target class controller does not exist - Laravel 8

Here is my controller: <?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class RegisterControlle

Laravel sanctum vue spa being blocked when using ip address

I know a lot has been documented on about laravel sanctum configuration to avoid blocked requests from your spa frontend, but something that is not quite clear

Laravel 9 on PHP 8.1 slow responses - out of the box

I am using out of the box Laravel 9 / php 8.1 combo and loading initial page for 190ms sounds horrible. Last project I built used laravel7 and the response time

Transition a div height when the content is updated by livewire

So we got a div with a Livewire component to choose languages : <div> @livewire('multiple-languages', [ ... ]) </div> When the user selects a l

php Keeping only 1 date occurence in multi-dimensional array

I have this array with certain brand_ids, within these brands I have an array of dates in which a sale occured but these are based on the products in sale so th

Laravel 8 how to join many to many relationship tables and create a query using DB

I am using Laravel 8 and I want to display list of event by joining tables that have many to many relationship. Here is how my tables look: Users Table | id |

Laravel cache error: Too few arguments to function {closure}(), 0 passed in .../Illuminate/Cache/Repository.php on line 426 and exactly 2 expected

So I have a table called styles which has classes and styles for various places in blade templates. The table has a unique column the name and a column for clas

"The GET method is not supported for this route. Supported methods: POST ."

I'm trying to add a new Post but whenever i submit i get the above error message. This is Route: Route::get('/p/create' , [App\Http\Controllers\PostsController:

Object at controller suddenly become array at view

anyone can explain why this happen? i cant access my data at view because it suddenly change to array. I try to check it using var_dumb at controller public fun

PHP variable binding issue with html from controller for ajax response

Controller: $html = ""; $user_id = 10; $by = 'By Aaron'; $getLedgerData = "getLedgerData('" . $user_id. "','" . $by . "')"; $html .= "<a onclick=" . $getLedg

Eloquent ORM and relative where time statement

I'm using ORM Eloquent and I need to filter all models using a date interval and an own property of the model. The raw SQL would be: SELECT * FROM model WHERE s

Unable to upload tiff images in Laravel

Tried to upload .tiff images using Laravel. used intervention/image for the image upload. it's not worked.shows this message. Unsupported image type image/tiff.

Laravel Spark installation problem, need to update something I imagine

I get the following error when I try to install Laravel Spark: Your requirements could not be resolved to an installable set of packages. Problem 1. - laravel/

Laravel Migrate: "Column Already Exists" 1060 Duplicate Column Name

This is a fresh laravel app that I am using to learn. There is no current table as this would be a fresh/first time migration. Why is it giving me this error: