Support the ongoing development of Laravel.io →

3,596 Threads

Illuminate\Database\Connection->$tablePrefix is an array

Whenever I try to run any database-related Artisan command (e.g. migrate, schema:dump), I get an Arr...

0 Likes
0 Replies

Visualization of connections

I need to visualize the relationship between the data in the tables. My point is to show what is con...

0 Likes
0 Replies

Can not tags by using Laravel Spatie Tag library

In model:- use HasTags and when i have attach tags using like this $model->attachTags(['Tag 1',...

0 Likes
0 Replies

Use laravel passport in lumen 8 with mongodb

Hello, I want to use laravel passport in lumen 8 with mongodb For that i USE jenssegers/mongodb modu...

0 Likes
1 Replies

CRUD registers all data in the table as NULL.php

I'm developing a CRUD with laravel sanctum, but in validation some of the fields need to accept NULL...

0 Likes
3 Replies

Laravel 8 relationship three models belongs to Parent model

Hello everyone I'm currently working on a laravel project where I have a parent table that has the i...

0 Likes
1 Replies

Database Seeder for Automation Testing

Hi, I am writing an Automation Test for a software that uses Laravel as back-end. To mock the data I...

tarek-o liked this thread

1 Likes
1 Replies

Update Database Field On Checked & Unchecked Of Checkbox

Hello, I Want To Update My Database Column Of Checkbox On Checked & Unchecked, Want Will Be The...

0 Likes
3 Replies

Access Denied Live User

Illuminate\Database\QueryException SQLSTATE[HY000] [1045] Access denied for user 'bsportal_jamalitru...

0 Likes
0 Replies

How can i show auto calculated field in a view?

Hi i have in my database a table with the following fields: $table->decimal('sale_price')...

0 Likes
4 Replies

Steps for running Laravel Framework Database Tests

Hi, We are looking to build support for YugabyteDB in Laravel. I'm new to the Laravel community and...

0 Likes
1 Replies

Ho to manipulate one column in Controller

Hi, i would like to create a simple output. My Controller has this code $item = Item::select('name',...

0 Likes
1 Replies

Tournament System

Hello world, Im trying to code a tournament system in laravel where users can join a tournament as s...

0 Likes
0 Replies

The save function does not work when sending data from the c

When you try to save data to the database, the page just loads endlessly. I also tried other methods...

0 Likes
0 Replies

Laravel 6 pivot casting

try to use following in Laravel 6 but the 'relations_type' column in 'contactable' table does not re...

0 Likes
0 Replies

I need help to fetch the sum of adult_rates from a colum

DB::table("rates") ->selectRaw("sum (datediff( day, case when $start_date > sta...

0 Likes
0 Replies

Fake model relationship

I have a project model where I want to associate roles and then users. The roles is a subset of the...

0 Likes
0 Replies

laravel-automatic-migrations: Automatic migrations

https://github.com/bastinald/laravel-automatic-migrations Laravel Automatic Migrations Automatic mig...

0 Likes
0 Replies

eloquent eager loading to limit for each post

I saw this thread from 7 years ago and thought I should update the answer. To improve on viquanghoa...

0 Likes
0 Replies

How to add sql and mysql database at same time in Laravel

I need to access two databases in my application. One is MySql and another is SQL. MySql is hosted i...

0 Likes
2 Replies

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.