-
At here https://github.com/laravel/framework/blob/5.3/src/Illuminate/Database/Eloquent/Builder.php#L1417
That mean:
```
Builder::macro('custommacro', functionn () { //register to builder
dd('I c…
-
- Laravel Version: 5.4.18
- PHP Version: 7.0.14
### Description:
The query passed to a local scope method on an eloquent model is re-used between static calls.
### Steps To Reproduce:
In …
-
I have certain article table and with user id option.
In Article page, i see list of all user id, but i want to see "name" of user instead of "id".
How can this be done.
** No foreign key use…
-
DEPRECATION WARNING: Passing a class to the `class_name` is deprecated and will raise an ArgumentError in Rails 5.2. It eagerloads more classes than necessary and potentially creates circular dependen…
-
### Steps to reproduce
(Guidelines for creating a bug report are [available
here](http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html#creating-a-bug-report))
### Expected behavior
…
-
I've set up a model to use a picture.
```php
public $attachOne = [
'picture' => 'System\Models\File'
];
````
I've properly loaded a picture using the relation. The picture is in the …
-
My User model has `id`, `name` and `permissions` as Relations
```javascript
const user = yield User
.query()
.with('permissions')
.fetch()
```
```javascript
{
"id": 1,
"name": "Al…
-
Hi,
When using DBIHealthCheck it requires DBI as constructor param which makes it possible to init only in place where DBI is created.
When trying to move that to separate method like that
```
…
-
in Model
```javascript
static get objectIdFields() {
return ['_id', 'timeline_id', 'type_id']
}
```
In Controller
```javascript
//below query doesn't work
tours = yield Tour.with(['t…
-
https://github.com/laravel/framework/blob/8929da5e3aa9507079d03a7e817ee0bc22463504/src/Illuminate/Auth/EloquentUserProvider.php#L113
Problem:
$query->first returns null
To replicate:
table > …