<link rel="stylesheet" href="{{ Vite::content('resources/css/style.css') }}">
app/Providers/AppServiceProvider.php
Vite::macro(), я себе сделал для resources/images/
, resources/js
и контента из public/
отдельные, может для resources/css тоже пригодится, если стили кусками делать. Только для использования надо их еще импортить или в конфиге vite указывать. Sometimes a model may have many related models, yet you want to easily retrieve the "latest" or "oldest" related model of the relationship. For example, a User model may be related to many Order models, but you want to define a convenient way to interact with the most recent order the user has placed. You may accomplish this using the hasOne relationship type combined with the ofMany methods:
use App\Models\Post;
$posts = Post::doesntHave('comments')->get();