Answer the question
In order to leave comments, you need to log in
Custom style for a specific post in WordPress?
Good afternoon!
Very interested in the solution to the question in the subject.
If it's even simpler, I would like to bind a unique selector to the record, and hammer it until it becomes unique against the background of a typical output.
Answer the question
In order to leave comments, you need to log in
Kind.
If it's on a post/page page, then as Roman Crabbs already advised you , use the body_class() function for the tag <body>
.
If in the list of entries, then the post_class() function for the desired tag, for example, framing the entry <div>
.
Pass an array to the view:
You can do this:
Or this:
This is how the view method looks likereturn view('user', ['task' => $task])
public View make(string $view, array $data = array(), array $mergeData = array())
Judging by your questions, you are still new even to PHP.
Read the documentation for laravel more carefully, fortunately, everything is chewed up there.
There is even a translated one)
Well, on the question - you are incorrectly transferring data to the view.
use App/taskModels as task;
maybe so?
Although the task declaration is not visible in the class... For the first time in index()... and then in find()... aren't the scopes different?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question