Support the ongoing development of Laravel.io →

4,312 Threads

Getting model reference in an trait

Guys, good afternoon! I use Laravel and I have the following problem: Whenever a user edit a record...

0 Likes
0 Replies

How do I use the ModelFactory for seeding data if my data is not from Faker?

Hello, Ok, so I am trying to seed data into a table, below is what I have tried: $factory->defin...

0 Likes
1 Replies

problem with model->save() when running phpunit test

I have a problem with phpunit testing. I have an api that takes some json and saves a model (->sa...

0 Likes
1 Replies

how to install Laravel Scout in slim Framework

sombody can to give me a guid or somthing how to install and use Laravel Scout with slimFramework th...

0 Likes
0 Replies

Can't change table name for eloquent

I haven't used Laravel in a while, so maybe I'm forgetting something. But these are my files: Route:...

0 Likes
5 Replies
Solved

Question on model create

Alright, I will do my best to describe my issue here. I have a route Route::get('/did/{search?}','DI...

0 Likes
2 Replies
Solved

Form\Laravel

I have an issue of adding data to two various tables. Tables: employees and employee_addresses addre...

0 Likes
1 Replies

laravel 4.2 mssql not working

Hi, I have been working with MySQL with laravel 4.2, it is working good, then I had to convert the s...

0 Likes
0 Replies

Seed Data into DB

Hello, I'm currently got stuck with the following: I'm trying to implement a catgeory system to my a...

0 Likes
1 Replies

Order by module relationship properties sum

I'm developing plugin archive, for one community. So basically I got few tabs where plugins are orde...

0 Likes
1 Replies

Nested model queries

I have a simple model relationship hierarchy and I'm trying to query them in a relatively simple way...

0 Likes
0 Replies

Allow users to delete their profile

There is a quick way to allow this? Can I use something like: public function destroy(Request...

0 Likes
0 Replies

How Create Relation out of two tables with different column name?

Dear All, Please kindly help me. i want to create a hasmany relation out of two tables doesn't have...

0 Likes
4 Replies

convert excel csv files to laraval database seeder files

Hello, is there a way to easily do this? I tried this way: http://laravelsnippets.com/snippets/seed-...

0 Likes
2 Replies

best bigdata db supported bylaravel

Hi everybody i'm very new with laravel so before i start developing, i want to know which is the bes...

0 Likes
1 Replies

View Composer to pass variable to all views

Hi, I have created a view composer to pass through the variable 'categories' to all views but I get...

0 Likes
1 Replies
Solved
posted 9 years ago

L5 Eloquent -> Models not found!?

Hey, i'm trying to create my relation with the database and i have this error... FatalErrorException...

0 Likes
4 Replies
Solved

Laravel relations/subscription handling

Hi I'm relatively new to Laravel and trying to create a subscription checker. Please do not suggest...

0 Likes
0 Replies

Custom column in eloquent based on sum

Hello, I have a query which is extracting some 'ordered items' between two specific dates. For each...

0 Likes
1 Replies
posted 8 years ago

How can i transform this MSSQL query to advance query builder?

SELECT bills.Barcode, ISNULL(FirstBegInvMyd.Qty,0) as FirstBegInvMyd FROM ( SELECT mt.Ba...

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

© 2025 Laravel.io - All rights reserved.