()
| 24 | // Trigger completion on `$bakery->` and scan the list. |
| 25 | |
| 26 | public function eloquentProperty(): void |
| 27 | { |
| 28 | $bakery = new Bakery(); |
| 29 | |
| 30 | $bakery->apricot; // $casts 'boolean' → bool |
| 31 | $bakery->baguettes; // relationship HasMany → Collection<Loaf> |
| 32 | $bakery->baguettes_count; // relationship count → int |
| 33 | $bakery->croissant; // $attributes default → string |
| 34 | $bakery->defrosted_at; // $dates (deprecated) → Carbon\Carbon |
| 35 | $bakery->dough_temp; // $casts 'float' → float |
| 36 | $bakery->egg_count; // $attributes default → int |
| 37 | $bakery->flour; // $fillable (no cast/attr) → mixed |
| 38 | $bakery->freshlyBaked(); // #[Scope] attribute method → Builder |
| 39 | $bakery->gluten_free; // $attributes default → bool |
| 40 | $bakery->headBaker; // relationship HasOne → Baker |
| 41 | $bakery->head_baker_count; // relationship count → int |
| 42 | $bakery->icing; // $casts custom class → ?Frosting |
| 43 | $bakery->jam_flavor; // $casts enum → JamFlavor |
| 44 | $bakery->kitchen_id; // $guarded (no cast/attr) → mixed |
| 45 | $bakery->loaf_name; // legacy accessor → string |
| 46 | $bakery->masterRecipe; // relationship BelongsToMany → Collection<BakeryRecipe> |
| 47 | $bakery->master_recipe_count; // relationship count → int |
| 48 | $bakery->notes; // $casts 'array' → array |
| 49 | $bakery->oven_code; // $hidden (no cast/attr) → mixed |
| 50 | $bakery->proved_at; // $casts 'datetime' → \Carbon\Carbon |
| 51 | $bakery->quality; // casts() method 'float' → float |
| 52 | $bakery->rye_blend; // $visible (no cast/attr) → mixed |
| 53 | $bakery->sprinkle; // modern accessor Attribute → string |
| 54 | $bakery->topping('choc'); // scope method → Builder |
| 55 | $bakery->unbaked(); // scope method → Builder |
| 56 | $bakery->vendor; // body-inferred morphTo → Model |
| 57 | $bakery->vendor_count; // relationship count → int |
| 58 | $bakery->warmth; // $appends (no cast/attr) → mixed |
| 59 | // MUST NOT appear: secret_ingredient (private $attributes field) |
| 60 | |
| 61 | // BelongsTo relationship property + method call with covariant $this |
| 62 | $post = new BlogPost(); |
| 63 | $post->author; // relationship BelongsTo → BlogAuthor |
| 64 | $post->author()->associate($post->author); // associate() on BelongsTo |
| 65 | } |
| 66 | |
| 67 | |
| 68 | // ── Eloquent Query Builder ────────────────────────────────────────────── |
nothing calls this directly
no test coverage detected