app/Http/Controllers/Instructor/Courses/CourseController.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 = CourseCategory::get(['id', 'name', 'slug']);
        return response()
            ->json([
                'categories' => $categories
            ]);
    }
public function create ( ) { $ categories = CourseCategory :: get ( [ 'id' , 'name' , 'slug' ] ) ; return response ( ) -> json ( [ 'categories' => $ categories ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .