Support the ongoing development of Laravel.io →

4,311 Threads

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

Laravel Framework 5 Bootstrap 3 Starter Site

I make a Laravel 5 starter site with boostrap 3 and datatable. You can download it from here: https:...

0 Likes
9 Replies

Upgrade from 5.2 to 5.3, cant pass models to controller

Since i upgraded to 5.3. i can not pass model from blade template to my contoller. Every Model i pas...

0 Likes
0 Replies

Users and Roles

Hi! I'm new in Laravel and I have a little problem with User and Roles. In a database I have users a...

0 Likes
11 Replies
Solved

I'm have problem with Inner join and response

Controller: public function editar($id){ $emitentes = Emitente::all(); $destinatarios = destinatario...

0 Likes
0 Replies

Allow registration just in case that user is logged in

Hello, Im using Laravel 5.3 Id like to allow registrations just for users who are currently logged i...

0 Likes
1 Replies

Order by pivot table attribute in Eloquent

Hi Guys I have this query: $user = Auth::user(); $user->jobs()->get(); where jobs is a bel...

0 Likes
6 Replies
Solved

Overriding find on amodel causes apache child to do segmentation violation

Hey folks. I tried to override find on a model like this namespace App; use Illuminate\Database\Eloq...

0 Likes
0 Replies
posted 9 years ago

Ordering a collection by the related items

My domain model looks like this: Person id first_name last_name other fields Position person_id c...

0 Likes
2 Replies
Solved

group by created_at

Hi, how to select all records from table group by created_at? When I get all rows from table it retu...

0 Likes
0 Replies
posted 8 years ago

Global Scope + Auth

I'm trying to use Auth within a global scope which seems to be working fine and doesn't effect the a...

0 Likes
1 Replies

$appends does not include the fields

Hi, I need to pass some 'virtual' fields to my model when passing JSON. I've started with the very b...

0 Likes
2 Replies

Issues with belongsToMany() only returning data for one column on pivot table.

So I'm kind of following the Laracasts Many To Many tutorial in Laravel5 Fundamentals and have the M...

0 Likes
2 Replies
Solved

hasOne not working (undefined property: stdClass)

I have two tables users id | name images id | user_id User model class User extends Authenticatabl...

0 Likes
2 Replies
posted 8 years ago

belongsTo() throwing "Trying to get property of non-object in View: "

I have only a single model with a self join class OfficeType extends Model { protected $table =...

0 Likes
2 Replies
Solved

Eloquence/Searchable working with translatable

Hi, i'try to use this package with laravel-translatable, there is any possibility to search in trans...

0 Likes
0 Replies
posted 8 years ago

Use Eloquent string in query

Considering this: $filters = 'where('id', 10)'; Is there any way to then use this in a eloquent str...

0 Likes
0 Replies

how would I convert this into Query Builder?

insert into `combined_results_by_typecode` (product_id, typecode, group_id, group_name, passed_count...

0 Likes
2 Replies

Laravel eloquent inverse one to many returns empty

I have following MySQL table structure: posts table: posts: {id(PK), title, content, slug, date, wri...

0 Likes
1 Replies

Add Columns with Methods Undefined

What I am trying to do is set a column to be a foreign key. Following the documentation, it's prett...

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