[wp-trac] [WordPress Trac] #60027: Post patterns show no posts

WordPress Trac noreply at wordpress.org
Sat Aug 24 14:38:11 UTC 2024


#60027: Post patterns show no posts
--------------------------+------------------------------
 Reporter:  bferonia      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:
 Severity:  major         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by utech1):

 I can’t seem to find any error
 Here is my controller

 {{{

 public function store(Request $request)
     {
       $data = request()->validate([
         'title' => 'required',
         'body' => 'required',
       ]);

        auth()->user()->profile()->post()->create($data
        );
        return redirect('/h');

 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60027#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list