Support the ongoing development of Laravel.io →

4,311 Threads

posted 8 years ago

Validate pivot

How can I validate on my pivot tables? For example I have a table and model 'project' and 'user' and...

0 Likes
2 Replies

PHP code from a table

Hi, Is there any way to get php code from a mysql table, and run it in a blade template?

0 Likes
7 Replies

many-to-many from the same table

Hello everyone. I need to create a feature of user following. So I could let users follow each other...

0 Likes
2 Replies

Consolidate the search block

Hi All, I have two blocks used for searching for active users and all users. Is there a way I can co...

0 Likes
1 Replies

country, State Corresponding Dropdown Insertion

I have form in that a dropdown is containing country and state and on the basis of country id i'm fi...

0 Likes
0 Replies

how to write this query

how to make this query in eloquent : SELECT employees.*, groups.name FROM employees JOIN groups ON g...

0 Likes
4 Replies
Solved
posted 8 years ago

whats this relationship??

If a user has articles and forum posts and comments, is the relationship polymorphic?? I want to let...

0 Likes
1 Replies
Solved

MassAssignmentException

Im work test enviroment with laravel 5.2.*, mysql, homstead and having trouble with a MassAssignmen...

0 Likes
1 Replies

Distinguishing Row Tables During Union Queries

Hi, I'm currently using a union to jointly select search results from two tables. However, I'm strug...

0 Likes
4 Replies
Solved

Validate relationship

I should validate if relationship exit when i create an enrtity. Example: A "Role" should...

0 Likes
0 Replies

Cannot delete pivot records in a morph relationship

Hi, I have an entity called genre and an entity called project, I have morphed a relationship from p...

0 Likes
0 Replies

JSON column

Hello guys, I have model with these settings/methods: protected $casts = ['data' => 'object'];...

0 Likes
1 Replies
Solved

Accessing properties of nested objects

I'm trying to access an attribute of a nested object: $company->order()->first()->customer(...

0 Likes
1 Replies

problem to update my image path in lavarel5.1

Hi I tried to update my image path in MySql but i see some tmp file path in mysql and i dont have an...

0 Likes
3 Replies
Solved

preferred techniques of database abstraction

This may be a question where 100 programmers have a 100 different answers but I was wondering if the...

0 Likes
0 Replies

one to many relationship returning empty

I've setup a basic one to many relationship, linking users to addresses. /** * User Model * * @pr...

0 Likes
2 Replies

cart in laravel

How to create shoping cart in laravel 5 , i'm experience difficulty to make.? it please

0 Likes
0 Replies
posted 8 years ago

Indirect modification of overloaded property App\Litter::$letter has no effect

Hello! I have a short but important question. I do use a lot of helper functions the have a cleaner...

0 Likes
3 Replies

Best way to store simple social media stats

I'm trying to track really simple social media stats for some companies. At this stage I'm largely s...

0 Likes
0 Replies

Error finding Model from Controller.php file, no error in artisan tinker.. help please

I am new to using Laraval so I apologize if this question is elementary. I'm running Laravel 5.2 usi...

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.