Skip to content
#

eloquent

Here are 659 public repositories matching this topic...

interludic
interludic commented Oct 31, 2018
  • 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;
});

nathan-io
nathan-io commented Sep 13, 2020

Hi, thanks for this wonderful package!

This issue is on v1.8.0, Laravel 7.26.1.

In our User model, we have some schemaless attributes including name.

Example of a Tinker session demonstrating the issue:

>>> $user
=> App\User {#4458
     id: 1,
     name: "{"first":"John","last":"Doe","formatted":"John Doe"}",
     email: "mail@mail.com",
     phone: null,
     locale: "e

Improve this page

Add a description, image, and links to the eloquent topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the eloquent topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.