Support the ongoing development of Laravel.io →

4,526 Threads

Displaying most viewed items from database in last 7 days

I am trying to change the view style of my site, which is actually set to display two pictures which...

0 Likes 1 Replies

how instead call an Eloquent STATIC method from controller

Laravel 6.x the below works… how instead to call an Eloquent Laravel db method??? how instead call a...

0 Likes 5 Replies
Solved

Data insertion in 4 tables with relationship

Hi i have a problem inserting data to 4 tables. Customers : with data of customers. this table hasMa...

0 Likes 0 Replies

Same Session for two different projects in different folders

I'm using Laravel 5x and I'm trying to have the user login from (for example): https://dev.example.c...

0 Likes 0 Replies

How to Make relationship for category,subcategory,product

I tried to retrieve the record from three table category,sub-category and products. How to retrive r...

0 Likes 1 Replies

User Roles Recursive

Hello. I use Laravel with UserAuth and Roles. All works fine. Now I want to add many Roles. The Role...

0 Likes 0 Replies

How to make an Automatic Selected Booking Date ?

Hello Laravel Brothers,Peace... I have tour reservation site with laravel infrastructure. you can lo...

0 Likes 4 Replies

Paginating products from Database

Hi, I have a database with a table called products, its something like this: Id|ProductName|ProductP...

0 Likes 0 Replies

issue

ntente buscar su pregunta primero utilizando el cuadro de búsqueda y asegúrese de haber leído nuestr...

1 Likes 0 Replies

Select dropdown value check and show if Not exist in databas

hi, i am trying to show only those packages name from drop down list which doesn't exist in database...

0 Likes 1 Replies

migrate error

Hello, I have started my first Laravel 7 project. If I want to start a database with it I get an err...

1 Likes 2 Replies

laraval migrate another migration , rather that the last one

Hi . I just create a migration to add a column to my "cvs" table , but when I run migrate...

0 Likes 1 Replies

Non-static method should not be called statically for scopes

I have a model with those methods: public function waiting() { return ! is_null($thi...

0 Likes 2 Replies

php artisan migrate:fresh command with multiple connections

I have tow database connections, `'mysql' => [ // connection information ],...

0 Likes 1 Replies

How to create a secondary connection to another DB

Hi there . I have two databases 192.168.1.82 (Master) and 192.168.1.83 (Slave) how can I configure l...

0 Likes 0 Replies

Trying to build web app for daily costs for members in work

I am trying to build web app with laravel that help me to save daily costs and the total for every m...

0 Likes 1 Replies

How to access database connected via PHPStorm tools

Hello, I connected to my database in PHPStorm (in Data Source and Drivers using General and SSH/SSL...

1 Likes 0 Replies

Cannot Store Form

Can Someone Help Me with This https://stackoverflow.com/questions/60236757/cannot-save-data PLease H...

0 Likes 0 Replies

How do I copy and its many children efficiently in laravel

I need to copy a multi parent and its children and its children's children. I don't want to do a for...

0 Likes 0 Replies

Eloquent relation count problems

Hi, I'm currently having the following problem that $eloquentEntity->relation->count() and $el...

0 Likes 1 Replies
Solved

Thanks to our community

Solutions given in the past year.

Moderators

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.