Table of Contents
- Setup Admin Controller
- 1) Create CategoryPostController.php inside app\Http\Controllers\Admin
- 2) Create TagController.php inside app\Http\Controllers\Admin
- 3) Create UserController.php inside app\Http\Controllers\Admin
- 4) Create PostCommentController.php inside app\Http\Controllers\Admin
- 5) create PostController.php inside app\Http\Controllers\Admin
- Create it's admin views files
- 1) create 'category_post' folder inside resources/views/admin then create it's index.blade.php, edit.blade.php
- 2) create 'post' inside resources/views/admin then below files
- 3) create folder 'post_comment' inside resources/views/admin then files
- 4) create folder 'user' inside 'resources/views/admin' then files
- 5) Create 'tag' inside 'resources/views/admin' then it's files
This is the 3rd part of our Laravel blog,news website tutorials from scracth . If you haven't seen our previous part visit Creating Laravel Blog,News website from scratch tutorial series | Part 1 Creating Laravel Blog,News website from scratch tutorial series | Part 2
If you looking for advance ready to use laravel blog, news website script, visit here
Setup Admin Controller
1) Create CategoryPostController.php inside app\Http\Controllers\Admin
2) Create TagController.php inside app\Http\Controllers\Admin
3) Create UserController.php inside app\Http\Controllers\Admin
4) Create PostCommentController.php inside app\Http\Controllers\Admin
5) create PostController.php inside app\Http\Controllers\Admin
Note : I have used below Laravel package Laravel Image Interventation to crop, resize image Create it's admin views files
1) create 'category_post' folder inside resources/views/admin then create it's index.blade.php, edit.blade.php
index.blade.php
edit.blade.php
2) create 'post' inside resources/views/admin then below files
index.blade.php
create.blade.php @if(Session::has('message')) {{ Session::get('message') }} @endif
@if (Session::has('errors')) @foreach ($errors->all() as $error)
{{ $error }}
@endforeach @endif Back @endsection
edit.blade.php @if(Session::has('message')) {{ Session::get('message') }} @endif
@if (Session::has('errors')) @foreach ($errors->all() as $error)
{{ $error }}
@endforeach @endif pimages); ?> Back