All Questions
4,093 questions
0
votes
1
answer
42
views
Laravel Auth::attempt() error: "Unknown column 'password'" when using a custom password field
I'm working on a Laravel project to migrate the project from codeigniter to laravel so i'm using a multi guard authentication and custom admin user table named tbl_admin_user, where both email and ...
0
votes
1
answer
63
views
If statements in eloquent Queries
I need optimize this query, I have this instruction
$tickets = BITicket::query();
$tickets = $tickets->whereIn("Status_Code", $status);
...
$tickets = $tickets->with("customer&...
0
votes
1
answer
65
views
Undefined array key "title" in laravel 11, llivewire 3
I want to read data from my database, but I keep receiving the following error;
Undefined array key "title"
I am using PHP 8.3.13 and Laravel 11.42.1 with Livewire 3
my table
app\Livewire\...
-1
votes
3
answers
126
views
laravel hasMany relation didnot work with mongodb database
hello everyone I have Laravel Framework 10.48.28
and mongodb 1.45.3
I have two collections
permissions & permission_curds
<?php
namespace App\Models;
use MongoDB\Laravel\Eloquent\Model;
use ...
0
votes
3
answers
56
views
Route didn't move into next page and data didn't saved into database
Recently I'm using Laravel to develop my booking service applications.
I had a problem when I wanted to store the data into the database through the form page. I already set the route, and method ...
0
votes
1
answer
38
views
How to Store and Retrieve Data Using Memcached in PHP/Laravel?
I am trying to use Memcached for caching data in my PHP/Laravel application, but I am not sure how to store and retrieve data properly.
Now, I want to:
Store data in Memcached.
Retrieve the stored ...
0
votes
1
answer
44
views
How to switch databases during login?
I need to configure my Laravel app to work in two different locations, with one server and two identical databases. I want the user to choose the location during the login phase using an input, and ...
0
votes
1
answer
95
views
Multiple images upload not working in laravel 11
I tried using a foreach loop to iterate through the request files, but only the last image in the loop is saved to the database and file system. How can I fix this? any help would be appreciated,
here ...
0
votes
1
answer
74
views
Laravel - Custom USER_ID field in Sessions table
I trying to use Session with Database driver in Laravel. I created the table, but the field user_id is always null, even after logged in. I am using a custom User table (Primary Key: USUARIOS_ID). ...
-3
votes
1
answer
100
views
How to securely manage the password provided by the client to configure the database connection in Laravel? [duplicate]
I am a beginner in Laravel development, and I am building an API where each client will use their own instance and must configure their database connection during an initial setup process. The ...
0
votes
1
answer
53
views
Livewire status changing
There is a button that works with Livewire. When I click on it, it changes the status of the given license, but when I click on it, the appearance and the database change, but I can't click on that ...
1
vote
1
answer
93
views
How to set a default value of 1 year from now for expire_at in Laravel migrations? [duplicate]
I am creating fields for a table in Laravel. I want to create a expire_at column using $table->timestamps() but set a default date of 1 year from now.
Currently, I am trying the following:
$table-&...
0
votes
1
answer
73
views
MultiDatabase Relationship Model
My goal is to create a project for multiple vehicle resellers. I need to stay up-to-date with new brands, models, versions, and years that are constantly being released.
However, it’s not practical ...
0
votes
0
answers
48
views
Efficiently Handling Polymorphic Relationships and Statuses in a Large-Scale Relational Database with Laravel
I'm currently working on a project using Laravel where I need to handle statuses across multiple types of entities (e.g., posts, comments, etc.). I've set up a polymorphic relationship to link ...
0
votes
1
answer
40
views
Property [nama_guru] does not exist on this collection instance
I’m working on a feature to display teacher data grouped by category (guru_category). Below is the code I’m using:
public function showGuru(Request $request)
{
$search = $request->input('search'...