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');
}
Please don't say this question has been asked help me I have choked laracast but did not work link is bellow
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire