Support the ongoing development of Laravel.io →

4,599 Threads

show related table columns in all select of model laravel

I want show related table columns (customers.name) in all select of model (User) laravel. I use acce...

0 Likes
0 Replies
posted 8 years ago

best way to run string functions over returned database object ?

I want to run various string functions over the data returned from a database query before I send it...

0 Likes
1 Replies

SQL Server 2012 DB connection with Laravel 4.2

So I'm trying to connect a SQL Server 2012 with Laravel and I get an error. PDOException (08001) SQL...

0 Likes
5 Replies
Solved

Wait until information is saved into DB

Hello, I'm currently trying the following: I'm having a form, where a user can add additional inform...

0 Likes
2 Replies
Solved

Model not found (Class 'App\Http\Controllers\App\Work' not found)

Somehow my model cannot be found, I also did try with use; This is in a normal controller public fun...

0 Likes
1 Replies
Solved

Add additional information for user

I'm using Laravel for a little app. In this app I added the auth things of Laravel (verison 5.3), so...

0 Likes
4 Replies
Solved
posted 8 years ago

laravel 5.3 : Undefined property: Illuminate\Database\Eloquent\Collection Error

I have one table called doctor (staff_id,specialization) and another table is staff (staff_id,passwo...

0 Likes
1 Replies

How to upload file/s (specifically pdf)?

Hi, can someone help me with the uploading of file/s. . .

0 Likes
3 Replies
Solved

How to properly create a custom query builder method

I have a custom method that I'd like to use globally. It is similar to increment and decrement but i...

quyle92 liked this thread

1 Likes
7 Replies

Many to many with additional columns / FK's

Hi there, Since a few months i'm working with Laravel and i love it, came from codeigniter. I have a...

0 Likes
4 Replies

Very Confusing MethodNotAllowedHttpException on a put request laravel

So far all attempts to modify the routing methods have failed. Been following some documentation on...

0 Likes
3 Replies

slug, str_slug

I added a collumn in the table users I call slug, no errors or anything, it just doesn't add. Should...

0 Likes
2 Replies
Solved

Create a json file and populate it with mysql data.

Hi everyone, what am trying to achieve with the code below is to fetch data from mysql database, the...

0 Likes
0 Replies

How to use multiple database connections in laravel project?

I want to use mysql and mongoDB in my laravel project, I know I can define multiple connections arra...

0 Likes
1 Replies
Solved

Laravel 5 : Displaying the column data of third table from first table where both tables are connected to a second table

I have three tables namely 1.Product 2.Category and 3.Attribute and each category have different att...

0 Likes
0 Replies

Update related model on model save

Hi Laravels, I have a sublet model that has its own table, but I have 2 more tables to store sublet...

0 Likes
0 Replies

Query On Blade View

Hello; I want to run a count() query on a blade view. Can someone help me? Thank You

0 Likes
1 Replies

Functional test artisan comand, that migrates multiple dynamic tenant database

So here is the picture: I have an app that creates tenant_db for each user registered. For doing tha...

0 Likes
0 Replies

Default Value On Migrate

Hello How can I define a default value on table schema(migrate)? Thank You

0 Likes
1 Replies
Solved

Get DB field from whereHas Table

Hi there, I have the folloing Tables: Partner id int name varchar booking id int id_partner int bo...

0 Likes
1 Replies
Solved

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.