Support the ongoing development of Laravel.io →

4,603 Threads

Foreign Key makes Problems

Hello, I would like to program an inventory system and need 3 tables for it. These can also be gener...

0 Likes
1 Replies
posted 10 years ago

How to create a new database (with prepared statements)?

Hello, I am trying to run a statement to create a database and an user, but it seems laravel continu...

0 Likes
2 Replies

Enforce additional WHERE on all queries.

We have a product SaaS let's say eCommerce. All user created shops and products are stored in single...

0 Likes
4 Replies

How to Route Model Bind with dynamic database connection?

Hi good people. Have been stuck for hours on end with model binding with dynamic DB connection. I ha...

0 Likes
3 Replies

Use Enum or Boolean , for 2 values

I have a doubth in am creating my DB , I have a column in my table that is called STATUS , the value...

0 Likes
1 Replies

Class 'Cartalyst\Sentinel\Laravel\SentinelServiceProvider'

Hello everybody, I don't have any problem running my app locally, I have cross checked my code thoro...

0 Likes
1 Replies
posted 6 years ago

Time Format in HH:MI

Hi, As you probably can tell from the title of the thread, the question is about formatting time. Cu...

0 Likes
0 Replies

Auth::login from event handler not persisting

I have a L5.2 app where I'm trying to login a user in an Event Listener. All routes are wrapped in w...

0 Likes
1 Replies

Save query on db listen event

I have a requirement that I need to save each and every query executed by the laravel program. I hav...

0 Likes
1 Replies
Solved
posted 8 years ago

SQLSTATE[42S02]: Base table or view not found: 1146 Table

Laravel 5.3 PHP: 7.0.3 First Error > [Illuminate\Database\QueryException] SQLSTATE[42S02]: Base t...

0 Likes
7 Replies
Solved

Randomize Laravel table rows to be unique

I have an app that has Categories, Boards, and Pins Models. A category has many boards and has many...

0 Likes
2 Replies

How to group relationship and get rank

Basically I have a point log table as follows: user_id | points 1 | 10 2 | 20 1 |...

0 Likes
0 Replies

Unable to access database "unknown host"

Hello, First of all, my website worked very well in local (using WAMP) until I try to add a remote h...

0 Likes
0 Replies

Model access in Laravel > 5

First of all, I'm new to Laravel. I come from Codeigniter where you can have something similar to: c...

0 Likes
0 Replies

One-To-Many Relationship On The Same Model [Laravel 5]

I'm having a bit of trouble making this work properly when querying with Eloquent, here's the model...

0 Likes
5 Replies

switching the --env option for artisan command on fly

Hi Devs, I'm trying to pass --env option to the migrate command with the env file which i'm creating...

0 Likes
0 Replies

Database Strict Mode

Hello, I'm little wonder please help me out. My query is :- Invoice::join('orders', 'orders.invoice_...

0 Likes
0 Replies

How To Solve if - else Statements are not working in Jquery

I am creating a Ticket Reservation System and I want to check data availability from the Database. A...

0 Likes
0 Replies

Unable to use Foreach loop with results of DB::Table

I'm unable to wrap my head around why I'm getting "Cannot use object of type stdClass as array&...

0 Likes
2 Replies
Solved
posted 6 years ago

Factory and seeding of pivot table in Laravel

I have 3 tables Applicant,Skills and Applicant_skill. Here Applicant_skill is the pivot table. One A...

0 Likes
0 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.