samedi 1 septembre 2018

laravel 5.6 Class App\Http\Controllers\PostController does not exist

I have search and found this Question ask before but did not solve my problem composer update and composer dumpautoload did not solve I am creating CMS base website I have created PostsController at create method I return a view And the route is bellow:

  Route::get('/post/create',[
'uses' => 'PostController@create',
'as' =>  'post.create'

]);]

this is PostsController@create

<?php

namespace App\Http\Controllers;
namespace App\Http\Controllers\PostController;
use Illuminate\Http\Request;
use Illuminate\Http\Controllers;


class PostsController extends Controller
 {
  /**
   * Display a listing of the resource.
   *
   * @return \Illuminate\Http\Response
   */
   public function index()
     {
       //
      }

    /**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
     public function create()
         {
           return view('admin.posts.create');
             }

Error screenshot at browser

Please don't say this question has been asked help me I have choked laracast but did not work link is bellow

https://laracasts.com/discuss/channels/general-discussion/reflectionexception-class-apphttpcontrollersadminadmincontroller-does-not-exist



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2wzVsXl
via IFTTT

Aucun commentaire:

Enregistrer un commentaire