-
I am trying to pull data from 2 tables in mysql into one datatable but cannot seem to get it working my thinking thus far has been :
```
public function instances(){
$query = EC2Instance::select('in…
-
## Problem
Once again this idea is inspired by Ruby on Rails. ;) ActiveRecord (the ORM library that ships with Rails) has the concept of a "has many through" relationship. That is, one record has m…
-
Hi,
I have schema (patients resource) like this:
```
public function fields(): array
{
return [
...
HasMany::make('documents')->readOnly(),
HasOne::make('…
-
PHP 7.1.26
Laravel 5.7.19
Branch v4 (as it seems to be the latest one)
Possibly related to PR #315
I just cloned your repo, made `composer install` and executed `vendor/bin/phpunit`.
```
1…
-
I'm unsure if the feature I'm describing here is not implemented, or if I am just not configuring things correctly to make it work this way.
If I have a `Post` model which `HasMany` `Comment` model…
-
Laravel 5.4 has had some changes in the way they handle relationships.
See: https://laravel.com/docs/5.4/upgrade (Foreign Key Conventions)
This essentially means that you have to define the four…
-
I can get the relationships using the model's `columns` array using dot notation and nested selects. But I have not been able to refactor to using eloquent relations
The following works
```php
Ma…
-
Hello,
I currently use compoships in conjunction with a Trait made by myself that enables Composite Primary Keys.
Would you guys think it would be useful and meaningful including such trait into C…
-
**Describe the bug**
When eager-loading polymorphic relationships, the polymorphic relation appears to be ignored when retrieving from the cache.
The exception below, is raised:
```
Call to …
-
Is there an easier way of me accessing the Store from within my custom readingRelatedx method without overriding the showRelated method in the controller and passing it in like this;
I need to over…