app/Http/Controllers/Admin/VideoController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $categories = VideoCategory::where('status', '1')->orderBy('title', 'asc')->get();
        $tags = Tag::where('status', '1')->orderBy('title', 'asc')->get();
        $title = $this->title;
        $url = $this->url;
        return view('admin.'.$url.'.create', compact('categories', 'tags', 'title', 'url'));
    }
public function create ( ) { $ categories = VideoCategory :: where ( 'status' , '1' ) -> orderBy ( 'title' , 'asc' ) -> get ( ) ; $ tags = Tag :: where ( 'status' , '1' ) -> orderBy ( 'title' , 'asc' ) -> get ( ) ; $ title = $ this -> title ; $ url = $ this -> url ; return view ( 'admin.' . $ url . '.create' , compact ( 'categories' , 'tags' , 'title' , 'url' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
//