Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

devnavente's avatar

devnavente wrote a comment+100 XP

2w ago

Laravel From Scratch (2026 Edition): Ep 20, Notifications

If your code editor doesn't handle this for you, remember to add

use App\Models\Idea;

to your IdeaPublished.php file.

Otherwise tinker throws the following error:

TypeError Appeval()'d code on line 1.
devnavente's avatar

devnavente wrote a comment+100 XP

2w ago

Laravel From Scratch (2026 Edition): Ep 19, Frontend Asset Bundling with Vite

In case somebody else faces this issue:

[plugin:@tailwindcss/vite:generate:serve] Unknown file extension ".css" for .../node_modules/daisyui/daisyui.css

In app.css, try switching

@plugin "daisyui";

for either of these

@plugin 'daisyui/index.js';
@import "daisyui/daisyui.css";
devnavente's avatar

devnavente wrote a comment+100 XP

2w ago

Laravel From Scratch (2026 Edition): Ep 16, Eloquent Relationships

@karimi_wahid Changing ideas() from protected to public fixed this error for me.