eloquent
Here are 776 public repositories matching this topic...
-
Updated
Jul 29, 2021 - PHP
-
Updated
Aug 22, 2021 - PHP
When I convert a model into a JSON string, the translatable attributes are shown in the raw format (object containing all the different translations). I would expect for it to return the translation string based on the current app locale.
-
Updated
Jun 11, 2021 - PHP
-
Updated
Aug 12, 2021 - PHP
需要绑定的变量对应的tag未生效
-
Updated
Dec 27, 2020 - PHP
Hi,
I just defined SlugOptions in my model so:
public function getSlugOptions() : SlugOptions
{
return SlugOptions::create()
->generateSlugsFrom('article_title')
->saveSlugsTo('slug')
->usingSeparator('-')
->doNotGenerateSlugsOnUpdate();
}and I'm trying to generate slug on model created via [replicate method](https://laravel.com/doc
-
Updated
Apr 3, 2021 - PHP
-
Updated
Aug 23, 2021 - PHP
Is your feature request related to a problem? Please describe.
I understand that a change within a translation does not affect a translated model's database table.
However, logically it changes the model's attributes, so it would be nice to also get the changed translation values with their corresponding keys within the result when calling $model->getChanges() within an update operation.
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 31, 2020 - PHP
-
Updated
Jun 27, 2021 - PHP
-
Updated
Mar 9, 2021 - PHP
-
Updated
Aug 1, 2021 - PHP
-
Updated
Aug 1, 2021 - PHP
-
Updated
Aug 20, 2021 - PHP
-
Updated
May 27, 2021 - 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."

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;
});