composer require ace-blog-package/package
php artisan vendor:publish --provider="ACE\ACEBlog\ACEBlogServiceProvider"
php artisan ACEBlog:install
ln -s ../storage/app/images public/images
add these functions to your user model
public static function aceblog_auth_user() { if(auth()->check()) { return ['id'=>auth()->user()->id,'name'=>auth()->user()->first_name.' '.auth()->user()->last_name]; } return null; } public static function get_user_by_id($id) { $user=User::find($id); return ['id'=>$user->id,'name'=>$user->first_name.' '.$user->last_name]; }
yourdomain/ACE-Blog
/public/vendor/ACEBlog
Get All Posts
yourdomain/api/blog/posts
Get Single Posts
yourdomain/api/blog/post/post_id
There are some helper functions that can be used to apply custom logics
Get All Categories
aceblog_categories()
Get All Posts
aceblog_posts()