app/Http/Controllers/Backend/BackendPostController.php
/**
     * Show the form for editing the specified resource.
     * The rules for access are are stored in in app/Policies/Backend/BackendPostPolicy.php
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
The rules for access are are stored in in app/Policies/Backend/BackendPostPolicy.php

@param  int  $id
@return \Illuminate\Http\Response
Show the form for editing the specified resource . The rules for access are are stored in in app / Policies / Backend / BackendPostPolicy . php @param int $id @return \ Illuminate \ Http \ Response
public function edit($id)
    {
        $data = $this->postRepository->load($id);
        return view( 'backend.posts.edit', $data );
    }
public function edit ( $ id ) { $ data = $ this -> postRepository -> load ( $ id ) ; return view ( 'backend.posts.edit' , $ data ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .
// Load all the data for the Post from the repository in app/Repositories/BackendPostRepository.php // Check the policy for the post, that are stored in app/Policies/Backend/BackendPostPolicy.php /*
         *   [
            'post' => // The post Object
            'all_categories' // All the categories
            'category_post' // Id of all the categories set for the post
            'status' => // All status available for the post
             'seo' => // Seo data for the post
        ];
         */