eloquent
Here are 615 public repositories matching this topic...
Hi,
I suppose this is a small bug as in InteractsWithMedia::class the function:
public function getFirstMedia(string $collectionName = 'default', array $filters = []): ?Media
{
$media = $this->getMedia($collectionName, $filters);
return $media->first();
}
enforce $filters
type to array
while InteractsWithMedia::getMedia()
supports $filters
as
-
Corcel Version: "jgrossi/corcel": "2.5.*",
-
Framework Name & Version: "laravel/framework": "5.5.*",
-
PHP Version: 7.1
Description:
Cant find model... for
// clean and simple all posts from a category
$cat = Category::slug('uncategorized')->posts->first();
$cat->posts->each(function($post) {
echo $post->post_title;
});
Document Constraints
Poking around in the code I see references to Constraints. (Silber\Bouncer\Constraints and associated classes)
I have played around with them some and even got them to write out their configuration to the database, but I can't figure out how to actually use them. They appear to be completely undocumented, and I can't quite figure out how they tie into things, although they also appear to be V
According to the documentation, the admin login is available at
http://site_address/website/public/admin
.
However, I get the message Not Found , The requested URL was not found on this server.
Browsing through the directory I cannot find folder or page as admin
. Hence, probably the docs are outdated.
The admin credentials are also not usable in the cl
Weird error when using aws elasticsearch
i know aws works because i can use it fine with postman
'config' => [ 'hosts' => ['aws_endpoint'], 'retries' => 1, ],
Set mutator bug
Steps to reproduce:
- Define set mutator (e.g.
$this->attributes['field'] = strtolower($value)
). - Assign some translations.
- Try to use
forgetTranslation
orforgetAllTranslations
or assign multiple translations to field ($model->field = ['en' => 'foo', 'pl' => 'bar']
).
-
Updated
May 15, 2020 - PHP
-
Updated
Mar 6, 2020 - PHP
-
Updated
Apr 21, 2020 - Go
This package looks absolutely terrific, and it will no doubt solve the needs of many, including me :)
However, the lack of a basic tutorial is really hindering me (and perhaps others), and possibly preventing more adoption of the package. I couldn't find a tutorial for this package, so if one exists, please let me know!
My view is that most people are probably just looking to add basic likes
How are users flushing the cache of relations? I see in the documentation the mention of 'rinvex.repository.uniqueid.entity.cache.flushed' and wonder how some are using this.
Here is a quick test command I created
public function handle()
{
$project = $this->projectContract->with('expeditions')->find(17);
$project->expeditions->each(function($expedition) {
if ($expedit
-
Updated
Mar 12, 2020 - PHP
-
Updated
May 12, 2020 - PHP
-
Updated
May 19, 2020 - PHP
When a schemaless column from db is set to NULL instead of {}
, on scout:import it results in that error:
Return value of Spatie\SchemalessAttributes\SchemalessAttributes::getRawSchemalessAttributes() must be of the type array, string returned
-
Updated
May 18, 2020 - PHP
-
Updated
Mar 22, 2020 - PHP
Improve this page
Add a description, image, and links to the eloquent topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the eloquent topic, visit your repo's landing page and select "manage topics."
I suggest php-cs-fixer for this library