├── .editorconfig ├── .env.example ├── .gitattributes ├── .gitignore ├── .htaccess ├── LICENSE.txt ├── app ├── Category.php ├── Console │ └── Kernel.php ├── Exceptions │ └── Handler.php ├── Http │ ├── Controllers │ │ ├── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── RegisterController.php │ │ │ ├── ResetPasswordController.php │ │ │ └── VerificationController.php │ │ ├── BlogController.php │ │ ├── CategoryController.php │ │ ├── Controller.php │ │ ├── HomeController.php │ │ └── PostController.php │ ├── Kernel.php │ └── Middleware │ │ ├── Authenticate.php │ │ ├── CheckForMaintenanceMode.php │ │ ├── EncryptCookies.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── TrimStrings.php │ │ ├── TrustProxies.php │ │ └── VerifyCsrfToken.php ├── Post.php ├── Providers │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php └── User.php ├── artisan ├── bootstrap ├── app.php └── cache │ └── .gitignore ├── composer.json ├── composer.lock ├── config ├── app.php ├── auth.php ├── broadcasting.php ├── cache.php ├── database.php ├── filesystems.php ├── hashing.php ├── image.php ├── logging.php ├── mail.php ├── queue.php ├── services.php ├── session.php └── view.php ├── database ├── .gitignore ├── factories │ └── UserFactory.php ├── migrations │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2018_11_25_135527_create_categories_table.php │ └── 2018_11_25_135634_create_posts_table.php └── seeds │ └── DatabaseSeeder.php ├── package-lock.json ├── package.json ├── phpunit.xml ├── public ├── .htaccess ├── assets │ ├── admin │ │ └── default │ │ │ └── admin.png │ └── public │ │ └── asset │ │ ├── contactform │ │ ├── Readme.txt │ │ └── contactform.js │ │ ├── css │ │ ├── animate.css │ │ ├── bootstrap-responsive.css │ │ ├── bootstrap.css │ │ ├── cslider.css │ │ ├── custom-fonts.css │ │ ├── fancybox │ │ │ ├── blank.gif │ │ │ ├── fancybox_loading.gif │ │ │ ├── fancybox_overlay.png │ │ │ ├── fancybox_sprite.png │ │ │ └── jquery.fancybox.css │ │ ├── flexslider.css │ │ ├── font-awesome.css │ │ ├── jcarousel.css │ │ ├── overwrite.css │ │ ├── slitslider.css │ │ └── style.css │ │ ├── font │ │ ├── customicon │ │ │ ├── Icons.eot │ │ │ ├── Icons.svg │ │ │ ├── Icons.ttf │ │ │ └── Icons.woff │ │ └── fontawesome │ │ │ ├── FontAwesome.otf │ │ │ ├── fontawesome-webfont.eot │ │ │ ├── fontawesome-webfont.svg │ │ │ ├── fontawesome-webfont.ttf │ │ │ └── fontawesome-webfont.woff │ │ ├── ico │ │ ├── apple-touch-icon-114-precomposed.png │ │ ├── apple-touch-icon-144-precomposed.png │ │ ├── apple-touch-icon-57-precomposed.png │ │ ├── apple-touch-icon-72-precomposed.png │ │ ├── favicon.ico │ │ └── favicon.png │ │ ├── img │ │ ├── avatar.png │ │ ├── bodybg │ │ │ ├── bg1.png │ │ │ ├── bg10.png │ │ │ ├── bg2.png │ │ │ ├── bg3.jpg │ │ │ ├── bg4.png │ │ │ ├── bg5.png │ │ │ ├── bg6.png │ │ │ ├── bg7.png │ │ │ ├── bg8.jpg │ │ │ └── bg9.png │ │ ├── dummies │ │ │ ├── blog │ │ │ │ ├── 65x65 │ │ │ │ │ ├── thumb1.jpg │ │ │ │ │ ├── thumb2.jpg │ │ │ │ │ └── thumb3.jpg │ │ │ │ ├── img1.jpg │ │ │ │ ├── img2.jpg │ │ │ │ ├── img3.jpg │ │ │ │ └── thumbs │ │ │ │ │ ├── img1.jpg │ │ │ │ │ ├── img2.jpg │ │ │ │ │ ├── img3.jpg │ │ │ │ │ ├── img4.jpg │ │ │ │ │ ├── no-thumb.jpg │ │ │ │ │ ├── quote-thumb.jpg │ │ │ │ │ └── small1.jpg │ │ │ ├── clients │ │ │ │ ├── client1.png │ │ │ │ ├── client2.png │ │ │ │ ├── client3.png │ │ │ │ ├── client4.png │ │ │ │ ├── client5.png │ │ │ │ └── client6.png │ │ │ ├── dummy-1.jpg │ │ │ ├── team1.jpg │ │ │ ├── team2.jpg │ │ │ ├── team3.jpg │ │ │ ├── team4.jpg │ │ │ └── testimonial-author1.png │ │ ├── glyphicons-halflings-white.png │ │ ├── glyphicons-halflings.png │ │ ├── logo.png │ │ ├── nivo-bullets.png │ │ ├── slides │ │ │ ├── nivo │ │ │ │ ├── bg-1.jpg │ │ │ │ ├── bg-2.jpg │ │ │ │ └── bg-3.jpg │ │ │ ├── parallax │ │ │ │ ├── 1.png │ │ │ │ ├── 2.png │ │ │ │ ├── 3.png │ │ │ │ ├── 4.png │ │ │ │ ├── arrows.png │ │ │ │ └── bg1.jpg │ │ │ └── slitslider │ │ │ │ ├── 1.jpg │ │ │ │ ├── 2.jpg │ │ │ │ ├── 3.jpg │ │ │ │ ├── 4.jpg │ │ │ │ └── 5.jpg │ │ └── works │ │ │ ├── full │ │ │ ├── image-01-full.jpg │ │ │ ├── image-02-full.jpg │ │ │ ├── image-03-full.jpg │ │ │ ├── image-04-full.jpg │ │ │ ├── image-05-full.jpg │ │ │ ├── image-06-full.jpg │ │ │ ├── image-07-full.jpg │ │ │ └── image-08-full.jpg │ │ │ └── thumbs │ │ │ ├── image-01.jpg │ │ │ ├── image-02.jpg │ │ │ ├── image-03.jpg │ │ │ ├── image-04.jpg │ │ │ ├── image-05.jpg │ │ │ ├── image-06.jpg │ │ │ ├── image-07.jpg │ │ │ └── image-08.jpg │ │ ├── js │ │ ├── animate.js │ │ ├── bootstrap.js │ │ ├── bootstrap.min.js │ │ ├── custom.js │ │ ├── google-code-prettify │ │ │ ├── prettify.css │ │ │ └── prettify.js │ │ ├── jcarousel │ │ │ ├── jquery.jcarousel.min.js │ │ │ └── setting.js │ │ ├── jquery.ba-cond.min.js │ │ ├── jquery.cookie.js │ │ ├── jquery.cslider.js │ │ ├── jquery.easing.1.3.js │ │ ├── jquery.fancybox-media.js │ │ ├── jquery.fancybox.pack.js │ │ ├── jquery.flexslider.js │ │ ├── jquery.js │ │ ├── jquery.nivo.slider.js │ │ ├── jquery.slitslider.js │ │ ├── modernizr.custom.js │ │ ├── portfolio │ │ │ ├── jquery.quicksand.js │ │ │ └── setting.js │ │ └── quicksand │ │ │ ├── jquery.quicksand.js │ │ │ └── setting.js │ │ └── skins │ │ ├── blue.css │ │ ├── default.css │ │ ├── green.css │ │ ├── kissme.css │ │ ├── lime.css │ │ ├── pink.css │ │ ├── red.css │ │ ├── rose.css │ │ ├── sand.css │ │ └── yellow.css ├── css │ └── app.css ├── favicon.ico ├── fonts │ └── vendor │ │ └── @fortawesome │ │ └── fontawesome-free │ │ ├── webfa-brands-400.eot │ │ ├── webfa-brands-400.svg │ │ ├── webfa-brands-400.ttf │ │ ├── webfa-brands-400.woff │ │ ├── webfa-brands-400.woff2 │ │ ├── webfa-regular-400.eot │ │ ├── webfa-regular-400.svg │ │ ├── webfa-regular-400.ttf │ │ ├── webfa-regular-400.woff │ │ ├── webfa-regular-400.woff2 │ │ ├── webfa-solid-900.eot │ │ ├── webfa-solid-900.svg │ │ ├── webfa-solid-900.ttf │ │ ├── webfa-solid-900.woff │ │ └── webfa-solid-900.woff2 ├── index.php ├── js │ └── app.js ├── mix-manifest.json ├── robots.txt ├── svg │ ├── 403.svg │ ├── 404.svg │ ├── 500.svg │ └── 503.svg ├── uploadimage │ ├── 1545388049.png │ ├── 1545768762.png │ ├── 1545855101.png │ └── 1545855313.png └── web.config ├── readme.md ├── resources ├── js │ ├── app.js │ ├── bootstrap.js │ ├── components │ │ ├── ExampleComponent.vue │ │ ├── admin │ │ │ ├── AdminHome.vue │ │ │ ├── AdminMaster.vue │ │ │ ├── category │ │ │ │ ├── Edit.vue │ │ │ │ ├── List.vue │ │ │ │ └── New.vue │ │ │ └── post │ │ │ │ ├── Edit.vue │ │ │ │ ├── List.vue │ │ │ │ └── New.vue │ │ └── public │ │ │ ├── PublicHome.vue │ │ │ ├── PublicMaster.vue │ │ │ └── blog │ │ │ ├── BlogPost.vue │ │ │ ├── BlogSidebar.vue │ │ │ └── SingleBlog.vue │ ├── filter.js │ ├── routes.js │ └── store │ │ └── index.js ├── lang │ └── en │ │ ├── auth.php │ │ ├── pagination.php │ │ ├── passwords.php │ │ └── validation.php ├── sass │ ├── _variables.scss │ └── app.scss └── views │ ├── admin │ └── adminmaster.blade.php │ ├── auth │ ├── login.blade.php │ ├── passwords │ │ ├── email.blade.php │ │ └── reset.blade.php │ ├── register.blade.php │ └── verify.blade.php │ ├── home.blade.php │ ├── layouts │ └── app.blade.php │ ├── public │ └── index.blade.php │ └── welcome.blade.php ├── routes ├── api.php ├── channels.php ├── console.php └── web.php ├── server.php ├── storage ├── app │ ├── .gitignore │ └── public │ │ └── .gitignore ├── framework │ ├── .gitignore │ ├── cache │ │ ├── .gitignore │ │ └── data │ │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ ├── testing │ │ └── .gitignore │ └── views │ │ └── .gitignore └── logs │ └── .gitignore ├── tests ├── CreatesApplication.php ├── Feature │ └── ExampleTest.php ├── TestCase.php └── Unit │ └── ExampleTest.php └── webpack.mix.js /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | insert_final_newline = true 7 | indent_style = space 8 | indent_size = 4 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | 14 | [*.yml] 15 | indent_size = 2 16 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Laravel 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost 6 | 7 | LOG_CHANNEL=stack 8 | 9 | DB_CONNECTION=mysql 10 | DB_HOST=127.0.0.1 11 | DB_PORT=3306 12 | DB_DATABASE=homestead 13 | DB_USERNAME=homestead 14 | DB_PASSWORD=secret 15 | 16 | BROADCAST_DRIVER=log 17 | CACHE_DRIVER=file 18 | QUEUE_CONNECTION=sync 19 | SESSION_DRIVER=file 20 | SESSION_LIFETIME=120 21 | 22 | REDIS_HOST=127.0.0.1 23 | REDIS_PASSWORD=null 24 | REDIS_PORT=6379 25 | 26 | MAIL_DRIVER=smtp 27 | MAIL_HOST=smtp.mailtrap.io 28 | MAIL_PORT=2525 29 | MAIL_USERNAME=null 30 | MAIL_PASSWORD=null 31 | MAIL_ENCRYPTION=null 32 | 33 | PUSHER_APP_ID= 34 | PUSHER_APP_KEY= 35 | PUSHER_APP_SECRET= 36 | PUSHER_APP_CLUSTER=mt1 37 | 38 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 39 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 40 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | *.js linguist-vendored 5 | CHANGELOG.md export-ignore 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /public/hot 3 | /public/storage 4 | /storage/*.key 5 | /vendor 6 | /.idea 7 | /.vscode 8 | /nbproject 9 | /.vagrant 10 | Homestead.json 11 | Homestead.yaml 12 | npm-debug.log 13 | yarn-error.log 14 | .env 15 | .phpunit.result.cache 16 | -------------------------------------------------------------------------------- /.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews 4 | 5 | 6 | RewriteEngine On 7 | 8 | RewriteCond %{REQUEST_FILENAME} -d [OR] 9 | RewriteCond %{REQUEST_FILENAME} -f 10 | RewriteRule ^ ^$1 [N] 11 | 12 | RewriteCond %{REQUEST_URI} (\.\w+$) [NC] 13 | RewriteRule ^(.*)$ public/$1 14 | 15 | RewriteCond %{REQUEST_FILENAME} !-d 16 | RewriteCond %{REQUEST_FILENAME} !-f 17 | RewriteRule ^ server.php 18 | 19 | -------------------------------------------------------------------------------- /app/Category.php: -------------------------------------------------------------------------------- 1 | hasMany(Post::class,'id'); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire') 28 | // ->hourly(); 29 | } 30 | 31 | /** 32 | * Register the commands for the application. 33 | * 34 | * @return void 35 | */ 36 | protected function commands() 37 | { 38 | $this->load(__DIR__.'/Commands'); 39 | 40 | require base_path('routes/console.php'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/LoginController.php: -------------------------------------------------------------------------------- 1 | middleware('guest')->except('logout'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/RegisterController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 41 | } 42 | 43 | /** 44 | * Get a validator for an incoming registration request. 45 | * 46 | * @param array $data 47 | * @return \Illuminate\Contracts\Validation\Validator 48 | */ 49 | protected function validator(array $data) 50 | { 51 | return Validator::make($data, [ 52 | 'name' => ['required', 'string', 'max:255'], 53 | 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], 54 | 'password' => ['required', 'string', 'min:6', 'confirmed'], 55 | ]); 56 | } 57 | 58 | /** 59 | * Create a new user instance after a valid registration. 60 | * 61 | * @param array $data 62 | * @return \App\User 63 | */ 64 | protected function create(array $data) 65 | { 66 | return User::create([ 67 | 'name' => $data['name'], 68 | 'email' => $data['email'], 69 | 'password' => Hash::make($data['password']), 70 | ]); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/VerificationController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 38 | $this->middleware('signed')->only('verify'); 39 | $this->middleware('throttle:6,1')->only('verify', 'resend'); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/Http/Controllers/BlogController.php: -------------------------------------------------------------------------------- 1 | orderBy('id','desc')->get(); 13 | return response()->json([ 14 | 'posts'=>$posts 15 | ],200); 16 | } 17 | public function getpost_by_id($id){ 18 | $post = Post::with('user','category')->where('id',$id)->first(); 19 | return response()->json([ 20 | 'post'=>$post 21 | ],200); 22 | } 23 | public function get_all_category(){ 24 | $categories = Category::all(); 25 | return response()->json([ 26 | 'categories'=>$categories 27 | ],200); 28 | } 29 | public function get_all_post_by_cat_id($id){ 30 | $posts = Post::with('user','category')->where('cat_id',$id)->orderBy('id','desc')->get(); 31 | return response()->json([ 32 | 'posts'=>$posts 33 | ],200); 34 | } 35 | public function search_post(){ 36 | 37 | $search = \Request::get('s'); 38 | if($search!=null){ 39 | $posts = Post::with('user','category') 40 | ->where('title','LIKE',"%$search%") 41 | ->orWhere('description','LIKE',"%$search%") 42 | ->get(); 43 | return response()->json([ 44 | 'posts'=>$posts 45 | ],200); 46 | }else{ 47 | return $this->get_all_blog_post(); 48 | } 49 | 50 | } 51 | public function latest_post(){ 52 | $posts = Post::with('user','category')->orderBy('id','desc')->get(); 53 | return response()->json([ 54 | 'posts'=>$posts 55 | ],200); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /app/Http/Controllers/CategoryController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 13 | } 14 | public function add_category(Request $request){ 15 | 16 | $this->validate($request,[ 17 | 'cat_name'=>'required|min:2|max:50' 18 | ]); 19 | $category = New Category(); 20 | $category->cat_name = $request->cat_name; 21 | $category->save(); 22 | return ['message'=>'OK']; 23 | } 24 | public function all_category(){ 25 | $categories = Category::all(); 26 | return response()->json([ 27 | 'categories'=>$categories 28 | ],200); 29 | } 30 | public function delete_category($id){ 31 | $category = Category::find($id); 32 | $category->delete(); 33 | } 34 | public function edit_category($id){ 35 | $category = Category::find($id); 36 | return response()->json([ 37 | 'category'=>$category 38 | ],200); 39 | } 40 | public function update_category(Request $request,$id){ 41 | $this->validate($request,[ 42 | 'cat_name'=>'required|min:2|max:50' 43 | ]); 44 | $category = Category::find($id); 45 | $category->cat_name = $request->cat_name; 46 | $category->save(); 47 | } 48 | public function selected_category($ids){ 49 | $all_id = explode(',',$ids); 50 | foreach ($all_id as $id){ 51 | $category = Category::find($id); 52 | $category->delete(); 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 17 | } 18 | 19 | /** 20 | * Show the application dashboard. 21 | * 22 | * @return \Illuminate\Http\Response 23 | */ 24 | public function index() 25 | { 26 | return view('admin.adminmaster'); 27 | } 28 | // public function all_category(){ 29 | // $categories = Category::all(); 30 | // return response()->json([ 31 | // 'categories'=>$categories 32 | // ],200); 33 | // } 34 | } 35 | -------------------------------------------------------------------------------- /app/Http/Controllers/PostController.php: -------------------------------------------------------------------------------- 1 | orderBy('id','desc')->get(); 15 | return response()->json([ 16 | 'posts'=>$posts 17 | ],200); 18 | } 19 | public function save_post(Request $request){ 20 | 21 | $this->validate($request,[ 22 | 'title'=>'required|min:2|max:50', 23 | 'description'=>'required|min:2|max:1000' 24 | ]); 25 | $strpos = strpos($request->photo,';'); 26 | $sub = substr($request->photo,0,$strpos); 27 | $ex = explode('/',$sub)[1]; 28 | $name = time().".".$ex; 29 | $img = Image::make($request->photo)->resize(200, 200); 30 | $upload_path = public_path()."/uploadimage/"; 31 | $img->save($upload_path.$name); 32 | $post = new Post(); 33 | $post->title = $request->title; 34 | $post->description = $request->description; 35 | $post->cat_id = $request->cat_id; 36 | $post->user_id = Auth::user()->id; 37 | $post->photo = $name; 38 | $post->save(); 39 | } 40 | public function delete_post($id){ 41 | $post = Post::find($id); 42 | $image_path = public_path()."/uploadimage/"; 43 | $image = $image_path. $post->photo; 44 | if(file_exists($image)){ 45 | @unlink($image); 46 | } 47 | $post->delete(); 48 | } 49 | public function edit_post($id){ 50 | $post = Post::find($id); 51 | return response()->json([ 52 | 'post'=>$post 53 | ],200); 54 | } 55 | public function update_post(Request $request, $id){ 56 | $post = Post::find($id); 57 | $this->validate($request,[ 58 | 'title'=>'required|min:2|max:50', 59 | 'description'=>'required|min:2|max:1000' 60 | ]); 61 | 62 | 63 | if($request->photo!=$post->photo){ 64 | $strpos = strpos($request->photo,';'); 65 | $sub = substr($request->photo,0,$strpos); 66 | $ex = explode('/',$sub)[1]; 67 | $name = time().".".$ex; 68 | $img = Image::make($request->photo)->resize(200, 200); 69 | $upload_path = public_path()."/uploadimage/"; 70 | $image = $upload_path. $post->photo; 71 | $img->save($upload_path.$name); 72 | 73 | if(file_exists($image)){ 74 | @unlink($image); 75 | } 76 | }else{ 77 | $name = $post->photo; 78 | } 79 | 80 | $post->title = $request->title; 81 | $post->description = $request->description; 82 | $post->cat_id = $request->cat_id; 83 | $post->user_id = Auth::user()->id; 84 | $post->photo = $name; 85 | $post->save(); 86 | } 87 | 88 | 89 | } 90 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | [ 31 | \App\Http\Middleware\EncryptCookies::class, 32 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 33 | \Illuminate\Session\Middleware\StartSession::class, 34 | // \Illuminate\Session\Middleware\AuthenticateSession::class, 35 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 36 | \App\Http\Middleware\VerifyCsrfToken::class, 37 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 38 | ], 39 | 40 | 'api' => [ 41 | 'throttle:60,1', 42 | 'bindings', 43 | ], 44 | ]; 45 | 46 | /** 47 | * The application's route middleware. 48 | * 49 | * These middleware may be assigned to groups or used individually. 50 | * 51 | * @var array 52 | */ 53 | protected $routeMiddleware = [ 54 | 'auth' => \App\Http\Middleware\Authenticate::class, 55 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 56 | 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 57 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 58 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 59 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 60 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 61 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 62 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 63 | ]; 64 | 65 | /** 66 | * The priority-sorted list of middleware. 67 | * 68 | * This forces the listed middleware to always be in the given order. 69 | * 70 | * @var array 71 | */ 72 | protected $middlewarePriority = [ 73 | \Illuminate\Session\Middleware\StartSession::class, 74 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 75 | \App\Http\Middleware\Authenticate::class, 76 | \Illuminate\Session\Middleware\AuthenticateSession::class, 77 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 78 | \Illuminate\Auth\Middleware\Authorize::class, 79 | ]; 80 | } 81 | -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 18 | return route('login'); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/CheckForMaintenanceMode.php: -------------------------------------------------------------------------------- 1 | check()) { 21 | return redirect('/home'); 22 | } 23 | 24 | return $next($request); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | belongsTo(User::class); 11 | } 12 | public function category(){ 13 | return $this->belongsTo(Category::class,'cat_id'); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | 'App\Policies\ModelPolicy', 17 | ]; 18 | 19 | /** 20 | * Register any authentication / authorization services. 21 | * 22 | * @return void 23 | */ 24 | public function boot() 25 | { 26 | $this->registerPolicies(); 27 | 28 | // 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 19 | SendEmailVerificationNotification::class, 20 | ], 21 | ]; 22 | 23 | /** 24 | * Register any events for your application. 25 | * 26 | * @return void 27 | */ 28 | public function boot() 29 | { 30 | parent::boot(); 31 | 32 | // 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | mapApiRoutes(); 39 | 40 | $this->mapWebRoutes(); 41 | 42 | // 43 | } 44 | 45 | /** 46 | * Define the "web" routes for the application. 47 | * 48 | * These routes all receive session state, CSRF protection, etc. 49 | * 50 | * @return void 51 | */ 52 | protected function mapWebRoutes() 53 | { 54 | Route::middleware('web') 55 | ->namespace($this->namespace) 56 | ->group(base_path('routes/web.php')); 57 | } 58 | 59 | /** 60 | * Define the "api" routes for the application. 61 | * 62 | * These routes are typically stateless. 63 | * 64 | * @return void 65 | */ 66 | protected function mapApiRoutes() 67 | { 68 | Route::prefix('api') 69 | ->middleware('api') 70 | ->namespace($this->namespace) 71 | ->group(base_path('routes/api.php')); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /app/User.php: -------------------------------------------------------------------------------- 1 | hasMany(Post::class); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | make(Illuminate\Contracts\Console\Kernel::class); 34 | 35 | $status = $kernel->handle( 36 | $input = new Symfony\Component\Console\Input\ArgvInput, 37 | new Symfony\Component\Console\Output\ConsoleOutput 38 | ); 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Shutdown The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once Artisan has finished running, we will fire off the shutdown events 46 | | so that any final work may be done by the application before we shut 47 | | down the process. This is the last thing to happen to the request. 48 | | 49 | */ 50 | 51 | $kernel->terminate($input, $status); 52 | 53 | exit($status); 54 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | Illuminate\Contracts\Http\Kernel::class, 31 | App\Http\Kernel::class 32 | ); 33 | 34 | $app->singleton( 35 | Illuminate\Contracts\Console\Kernel::class, 36 | App\Console\Kernel::class 37 | ); 38 | 39 | $app->singleton( 40 | Illuminate\Contracts\Debug\ExceptionHandler::class, 41 | App\Exceptions\Handler::class 42 | ); 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Return The Application 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This script returns the application instance. The instance is given to 50 | | the calling script so we can separate the building of the instances 51 | | from the actual running of the application and sending responses. 52 | | 53 | */ 54 | 55 | return $app; 56 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "laravel/laravel", 3 | "description": "The Laravel Framework.", 4 | "keywords": ["framework", "laravel"], 5 | "license": "MIT", 6 | "type": "project", 7 | "require": { 8 | "php": "^7.1.3", 9 | "fideloper/proxy": "^4.0", 10 | "intervention/image": "^2.4", 11 | "laravel/framework": "5.7.*", 12 | "laravel/tinker": "^1.0" 13 | }, 14 | "require-dev": { 15 | "beyondcode/laravel-dump-server": "^1.0", 16 | "filp/whoops": "^2.0", 17 | "fzaninotto/faker": "^1.4", 18 | "mockery/mockery": "^1.0", 19 | "nunomaduro/collision": "^2.0", 20 | "phpunit/phpunit": "^7.0" 21 | }, 22 | "autoload": { 23 | "classmap": [ 24 | "database/seeds", 25 | "database/factories" 26 | ], 27 | "psr-4": { 28 | "App\\": "app/" 29 | } 30 | }, 31 | "autoload-dev": { 32 | "psr-4": { 33 | "Tests\\": "tests/" 34 | } 35 | }, 36 | "extra": { 37 | "laravel": { 38 | "dont-discover": [ 39 | ] 40 | } 41 | }, 42 | "scripts": { 43 | "post-root-package-install": [ 44 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 45 | ], 46 | "post-create-project-cmd": [ 47 | "@php artisan key:generate --ansi" 48 | ], 49 | "post-autoload-dump": [ 50 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 51 | "@php artisan package:discover --ansi" 52 | ] 53 | }, 54 | "config": { 55 | "preferred-install": "dist", 56 | "sort-packages": true, 57 | "optimize-autoloader": true 58 | }, 59 | "minimum-stability": "dev", 60 | "prefer-stable": true 61 | } 62 | -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'guard' => 'web', 18 | 'passwords' => 'users', 19 | ], 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Authentication Guards 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Next, you may define every authentication guard for your application. 27 | | Of course, a great default configuration has been defined for you 28 | | here which uses session storage and the Eloquent user provider. 29 | | 30 | | All authentication drivers have a user provider. This defines how the 31 | | users are actually retrieved out of your database or other storage 32 | | mechanisms used by this application to persist your user's data. 33 | | 34 | | Supported: "session", "token" 35 | | 36 | */ 37 | 38 | 'guards' => [ 39 | 'web' => [ 40 | 'driver' => 'session', 41 | 'provider' => 'users', 42 | ], 43 | 44 | 'api' => [ 45 | 'driver' => 'token', 46 | 'provider' => 'users', 47 | ], 48 | ], 49 | 50 | /* 51 | |-------------------------------------------------------------------------- 52 | | User Providers 53 | |-------------------------------------------------------------------------- 54 | | 55 | | All authentication drivers have a user provider. This defines how the 56 | | users are actually retrieved out of your database or other storage 57 | | mechanisms used by this application to persist your user's data. 58 | | 59 | | If you have multiple user tables or models you may configure multiple 60 | | sources which represent each model / table. These sources may then 61 | | be assigned to any extra authentication guards you have defined. 62 | | 63 | | Supported: "database", "eloquent" 64 | | 65 | */ 66 | 67 | 'providers' => [ 68 | 'users' => [ 69 | 'driver' => 'eloquent', 70 | 'model' => App\User::class, 71 | ], 72 | 73 | // 'users' => [ 74 | // 'driver' => 'database', 75 | // 'table' => 'users', 76 | // ], 77 | ], 78 | 79 | /* 80 | |-------------------------------------------------------------------------- 81 | | Resetting Passwords 82 | |-------------------------------------------------------------------------- 83 | | 84 | | You may specify multiple password reset configurations if you have more 85 | | than one user table or model in the application and you want to have 86 | | separate password reset settings based on the specific user types. 87 | | 88 | | The expire time is the number of minutes that the reset token should be 89 | | considered valid. This security feature keeps tokens short-lived so 90 | | they have less time to be guessed. You may change this as needed. 91 | | 92 | */ 93 | 94 | 'passwords' => [ 95 | 'users' => [ 96 | 'provider' => 'users', 97 | 'table' => 'password_resets', 98 | 'expire' => 60, 99 | ], 100 | ], 101 | 102 | ]; 103 | -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_APP_KEY'), 36 | 'secret' => env('PUSHER_APP_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | 'cluster' => env('PUSHER_APP_CLUSTER'), 40 | 'encrypted' => true, 41 | ], 42 | ], 43 | 44 | 'redis' => [ 45 | 'driver' => 'redis', 46 | 'connection' => 'default', 47 | ], 48 | 49 | 'log' => [ 50 | 'driver' => 'log', 51 | ], 52 | 53 | 'null' => [ 54 | 'driver' => 'null', 55 | ], 56 | 57 | ], 58 | 59 | ]; 60 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_DRIVER', 'file'), 21 | 22 | /* 23 | |-------------------------------------------------------------------------- 24 | | Cache Stores 25 | |-------------------------------------------------------------------------- 26 | | 27 | | Here you may define all of the cache "stores" for your application as 28 | | well as their drivers. You may even define multiple stores for the 29 | | same cache driver to group types of items stored in your caches. 30 | | 31 | */ 32 | 33 | 'stores' => [ 34 | 35 | 'apc' => [ 36 | 'driver' => 'apc', 37 | ], 38 | 39 | 'array' => [ 40 | 'driver' => 'array', 41 | ], 42 | 43 | 'database' => [ 44 | 'driver' => 'database', 45 | 'table' => 'cache', 46 | 'connection' => null, 47 | ], 48 | 49 | 'file' => [ 50 | 'driver' => 'file', 51 | 'path' => storage_path('framework/cache/data'), 52 | ], 53 | 54 | 'memcached' => [ 55 | 'driver' => 'memcached', 56 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 57 | 'sasl' => [ 58 | env('MEMCACHED_USERNAME'), 59 | env('MEMCACHED_PASSWORD'), 60 | ], 61 | 'options' => [ 62 | // Memcached::OPT_CONNECT_TIMEOUT => 2000, 63 | ], 64 | 'servers' => [ 65 | [ 66 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 67 | 'port' => env('MEMCACHED_PORT', 11211), 68 | 'weight' => 100, 69 | ], 70 | ], 71 | ], 72 | 73 | 'redis' => [ 74 | 'driver' => 'redis', 75 | 'connection' => 'cache', 76 | ], 77 | 78 | ], 79 | 80 | /* 81 | |-------------------------------------------------------------------------- 82 | | Cache Key Prefix 83 | |-------------------------------------------------------------------------- 84 | | 85 | | When utilizing a RAM based store such as APC or Memcached, there might 86 | | be other applications utilizing the same cache. So, we'll specify a 87 | | value to get prefixed to all our keys so we can avoid collisions. 88 | | 89 | */ 90 | 91 | 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'), 92 | 93 | ]; 94 | -------------------------------------------------------------------------------- /config/database.php: -------------------------------------------------------------------------------- 1 | env('DB_CONNECTION', 'mysql'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Database Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here are each of the database connections setup for your application. 24 | | Of course, examples of configuring each database platform that is 25 | | supported by Laravel is shown below to make development simple. 26 | | 27 | | 28 | | All database work in Laravel is done through the PHP PDO facilities 29 | | so make sure you have the driver for your particular database of 30 | | choice installed on your machine before you begin development. 31 | | 32 | */ 33 | 34 | 'connections' => [ 35 | 36 | 'sqlite' => [ 37 | 'driver' => 'sqlite', 38 | 'database' => env('DB_DATABASE', database_path('database.sqlite')), 39 | 'prefix' => '', 40 | 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), 41 | ], 42 | 43 | 'mysql' => [ 44 | 'driver' => 'mysql', 45 | 'host' => env('DB_HOST', '127.0.0.1'), 46 | 'port' => env('DB_PORT', '3306'), 47 | 'database' => env('DB_DATABASE', 'forge'), 48 | 'username' => env('DB_USERNAME', 'forge'), 49 | 'password' => env('DB_PASSWORD', ''), 50 | 'unix_socket' => env('DB_SOCKET', ''), 51 | 'charset' => 'utf8mb4', 52 | 'collation' => 'utf8mb4_unicode_ci', 53 | 'prefix' => '', 54 | 'prefix_indexes' => true, 55 | 'strict' => true, 56 | 'engine' => null, 57 | ], 58 | 59 | 'pgsql' => [ 60 | 'driver' => 'pgsql', 61 | 'host' => env('DB_HOST', '127.0.0.1'), 62 | 'port' => env('DB_PORT', '5432'), 63 | 'database' => env('DB_DATABASE', 'forge'), 64 | 'username' => env('DB_USERNAME', 'forge'), 65 | 'password' => env('DB_PASSWORD', ''), 66 | 'charset' => 'utf8', 67 | 'prefix' => '', 68 | 'prefix_indexes' => true, 69 | 'schema' => 'public', 70 | 'sslmode' => 'prefer', 71 | ], 72 | 73 | 'sqlsrv' => [ 74 | 'driver' => 'sqlsrv', 75 | 'host' => env('DB_HOST', 'localhost'), 76 | 'port' => env('DB_PORT', '1433'), 77 | 'database' => env('DB_DATABASE', 'forge'), 78 | 'username' => env('DB_USERNAME', 'forge'), 79 | 'password' => env('DB_PASSWORD', ''), 80 | 'charset' => 'utf8', 81 | 'prefix' => '', 82 | 'prefix_indexes' => true, 83 | ], 84 | 85 | ], 86 | 87 | /* 88 | |-------------------------------------------------------------------------- 89 | | Migration Repository Table 90 | |-------------------------------------------------------------------------- 91 | | 92 | | This table keeps track of all the migrations that have already run for 93 | | your application. Using this information, we can determine which of 94 | | the migrations on disk haven't actually been run in the database. 95 | | 96 | */ 97 | 98 | 'migrations' => 'migrations', 99 | 100 | /* 101 | |-------------------------------------------------------------------------- 102 | | Redis Databases 103 | |-------------------------------------------------------------------------- 104 | | 105 | | Redis is an open source, fast, and advanced key-value store that also 106 | | provides a richer body of commands than a typical key-value system 107 | | such as APC or Memcached. Laravel makes it easy to dig right in. 108 | | 109 | */ 110 | 111 | 'redis' => [ 112 | 113 | 'client' => 'predis', 114 | 115 | 'default' => [ 116 | 'host' => env('REDIS_HOST', '127.0.0.1'), 117 | 'password' => env('REDIS_PASSWORD', null), 118 | 'port' => env('REDIS_PORT', 6379), 119 | 'database' => env('REDIS_DB', 0), 120 | ], 121 | 122 | 'cache' => [ 123 | 'host' => env('REDIS_HOST', '127.0.0.1'), 124 | 'password' => env('REDIS_PASSWORD', null), 125 | 'port' => env('REDIS_PORT', 6379), 126 | 'database' => env('REDIS_CACHE_DB', 1), 127 | ], 128 | 129 | ], 130 | 131 | ]; 132 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DRIVER', 'local'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Default Cloud Filesystem Disk 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Many applications store files both locally and in the cloud. For this 24 | | reason, you may specify a default "cloud" driver here. This driver 25 | | will be bound as the Cloud disk implementation in the container. 26 | | 27 | */ 28 | 29 | 'cloud' => env('FILESYSTEM_CLOUD', 's3'), 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Filesystem Disks 34 | |-------------------------------------------------------------------------- 35 | | 36 | | Here you may configure as many filesystem "disks" as you wish, and you 37 | | may even configure multiple disks of the same driver. Defaults have 38 | | been setup for each driver as an example of the required options. 39 | | 40 | | Supported Drivers: "local", "ftp", "sftp", "s3", "rackspace" 41 | | 42 | */ 43 | 44 | 'disks' => [ 45 | 46 | 'local' => [ 47 | 'driver' => 'local', 48 | 'root' => storage_path('app'), 49 | ], 50 | 51 | 'public' => [ 52 | 'driver' => 'local', 53 | 'root' => storage_path('app/public'), 54 | 'url' => env('APP_URL').'/storage', 55 | 'visibility' => 'public', 56 | ], 57 | 58 | 's3' => [ 59 | 'driver' => 's3', 60 | 'key' => env('AWS_ACCESS_KEY_ID'), 61 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 62 | 'region' => env('AWS_DEFAULT_REGION'), 63 | 'bucket' => env('AWS_BUCKET'), 64 | 'url' => env('AWS_URL'), 65 | ], 66 | 67 | ], 68 | 69 | ]; 70 | -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- 1 | 'bcrypt', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Bcrypt Options 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may specify the configuration options that should be used when 26 | | passwords are hashed using the Bcrypt algorithm. This will allow you 27 | | to control the amount of time it takes to hash the given password. 28 | | 29 | */ 30 | 31 | 'bcrypt' => [ 32 | 'rounds' => env('BCRYPT_ROUNDS', 10), 33 | ], 34 | 35 | /* 36 | |-------------------------------------------------------------------------- 37 | | Argon Options 38 | |-------------------------------------------------------------------------- 39 | | 40 | | Here you may specify the configuration options that should be used when 41 | | passwords are hashed using the Argon algorithm. These will allow you 42 | | to control the amount of time it takes to hash the given password. 43 | | 44 | */ 45 | 46 | 'argon' => [ 47 | 'memory' => 1024, 48 | 'threads' => 2, 49 | 'time' => 2, 50 | ], 51 | 52 | ]; 53 | -------------------------------------------------------------------------------- /config/image.php: -------------------------------------------------------------------------------- 1 | 'gd' 19 | 20 | ]; 21 | -------------------------------------------------------------------------------- /config/logging.php: -------------------------------------------------------------------------------- 1 | env('LOG_CHANNEL', 'stack'), 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Log Channels 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Here you may configure the log channels for your application. Out of 27 | | the box, Laravel uses the Monolog PHP logging library. This gives 28 | | you a variety of powerful log handlers / formatters to utilize. 29 | | 30 | | Available Drivers: "single", "daily", "slack", "syslog", 31 | | "errorlog", "monolog", 32 | | "custom", "stack" 33 | | 34 | */ 35 | 36 | 'channels' => [ 37 | 'stack' => [ 38 | 'driver' => 'stack', 39 | 'channels' => ['daily'], 40 | ], 41 | 42 | 'single' => [ 43 | 'driver' => 'single', 44 | 'path' => storage_path('logs/laravel.log'), 45 | 'level' => 'debug', 46 | ], 47 | 48 | 'daily' => [ 49 | 'driver' => 'daily', 50 | 'path' => storage_path('logs/laravel.log'), 51 | 'level' => 'debug', 52 | 'days' => 14, 53 | ], 54 | 55 | 'slack' => [ 56 | 'driver' => 'slack', 57 | 'url' => env('LOG_SLACK_WEBHOOK_URL'), 58 | 'username' => 'Laravel Log', 59 | 'emoji' => ':boom:', 60 | 'level' => 'critical', 61 | ], 62 | 63 | 'papertrail' => [ 64 | 'driver' => 'monolog', 65 | 'level' => 'debug', 66 | 'handler' => SyslogUdpHandler::class, 67 | 'handler_with' => [ 68 | 'host' => env('PAPERTRAIL_URL'), 69 | 'port' => env('PAPERTRAIL_PORT'), 70 | ], 71 | ], 72 | 73 | 'stderr' => [ 74 | 'driver' => 'monolog', 75 | 'handler' => StreamHandler::class, 76 | 'with' => [ 77 | 'stream' => 'php://stderr', 78 | ], 79 | ], 80 | 81 | 'syslog' => [ 82 | 'driver' => 'syslog', 83 | 'level' => 'debug', 84 | ], 85 | 86 | 'errorlog' => [ 87 | 'driver' => 'errorlog', 88 | 'level' => 'debug', 89 | ], 90 | ], 91 | 92 | ]; 93 | -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- 1 | env('MAIL_DRIVER', 'smtp'), 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | SMTP Host Address 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Here you may provide the host address of the SMTP server used by your 27 | | applications. A default option is provided that is compatible with 28 | | the Mailgun mail service which will provide reliable deliveries. 29 | | 30 | */ 31 | 32 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 33 | 34 | /* 35 | |-------------------------------------------------------------------------- 36 | | SMTP Host Port 37 | |-------------------------------------------------------------------------- 38 | | 39 | | This is the SMTP port used by your application to deliver e-mails to 40 | | users of the application. Like the host we have set this value to 41 | | stay compatible with the Mailgun e-mail application by default. 42 | | 43 | */ 44 | 45 | 'port' => env('MAIL_PORT', 587), 46 | 47 | /* 48 | |-------------------------------------------------------------------------- 49 | | Global "From" Address 50 | |-------------------------------------------------------------------------- 51 | | 52 | | You may wish for all e-mails sent by your application to be sent from 53 | | the same address. Here, you may specify a name and address that is 54 | | used globally for all e-mails that are sent by your application. 55 | | 56 | */ 57 | 58 | 'from' => [ 59 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 60 | 'name' => env('MAIL_FROM_NAME', 'Example'), 61 | ], 62 | 63 | /* 64 | |-------------------------------------------------------------------------- 65 | | E-Mail Encryption Protocol 66 | |-------------------------------------------------------------------------- 67 | | 68 | | Here you may specify the encryption protocol that should be used when 69 | | the application send e-mail messages. A sensible default using the 70 | | transport layer security protocol should provide great security. 71 | | 72 | */ 73 | 74 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 75 | 76 | /* 77 | |-------------------------------------------------------------------------- 78 | | SMTP Server Username 79 | |-------------------------------------------------------------------------- 80 | | 81 | | If your SMTP server requires a username for authentication, you should 82 | | set it here. This will get used to authenticate with your server on 83 | | connection. You may also set the "password" value below this one. 84 | | 85 | */ 86 | 87 | 'username' => env('MAIL_USERNAME'), 88 | 89 | 'password' => env('MAIL_PASSWORD'), 90 | 91 | /* 92 | |-------------------------------------------------------------------------- 93 | | Sendmail System Path 94 | |-------------------------------------------------------------------------- 95 | | 96 | | When using the "sendmail" driver to send e-mails, we will need to know 97 | | the path to where Sendmail lives on this server. A default path has 98 | | been provided here, which will work well on most of your systems. 99 | | 100 | */ 101 | 102 | 'sendmail' => '/usr/sbin/sendmail -bs', 103 | 104 | /* 105 | |-------------------------------------------------------------------------- 106 | | Markdown Mail Settings 107 | |-------------------------------------------------------------------------- 108 | | 109 | | If you are using Markdown based email rendering, you may configure your 110 | | theme and component paths here, allowing you to customize the design 111 | | of the emails. Or, you may simply stick with the Laravel defaults! 112 | | 113 | */ 114 | 115 | 'markdown' => [ 116 | 'theme' => 'default', 117 | 118 | 'paths' => [ 119 | resource_path('views/vendor/mail'), 120 | ], 121 | ], 122 | 123 | ]; 124 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_CONNECTION', 'sync'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Queue Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure the connection information for each server that 24 | | is used by your application. A default configuration has been added 25 | | for each back-end shipped with Laravel. You are free to add more. 26 | | 27 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'sync' => [ 34 | 'driver' => 'sync', 35 | ], 36 | 37 | 'database' => [ 38 | 'driver' => 'database', 39 | 'table' => 'jobs', 40 | 'queue' => 'default', 41 | 'retry_after' => 90, 42 | ], 43 | 44 | 'beanstalkd' => [ 45 | 'driver' => 'beanstalkd', 46 | 'host' => 'localhost', 47 | 'queue' => 'default', 48 | 'retry_after' => 90, 49 | ], 50 | 51 | 'sqs' => [ 52 | 'driver' => 'sqs', 53 | 'key' => env('SQS_KEY', 'your-public-key'), 54 | 'secret' => env('SQS_SECRET', 'your-secret-key'), 55 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 56 | 'queue' => env('SQS_QUEUE', 'your-queue-name'), 57 | 'region' => env('SQS_REGION', 'us-east-1'), 58 | ], 59 | 60 | 'redis' => [ 61 | 'driver' => 'redis', 62 | 'connection' => 'default', 63 | 'queue' => env('REDIS_QUEUE', 'default'), 64 | 'retry_after' => 90, 65 | 'block_for' => null, 66 | ], 67 | 68 | ], 69 | 70 | /* 71 | |-------------------------------------------------------------------------- 72 | | Failed Queue Jobs 73 | |-------------------------------------------------------------------------- 74 | | 75 | | These options configure the behavior of failed queue job logging so you 76 | | can control which database and table are used to store the jobs that 77 | | have failed. You may change them to any database / table you wish. 78 | | 79 | */ 80 | 81 | 'failed' => [ 82 | 'database' => env('DB_CONNECTION', 'mysql'), 83 | 'table' => 'failed_jobs', 84 | ], 85 | 86 | ]; 87 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | ], 22 | 23 | 'ses' => [ 24 | 'key' => env('SES_KEY'), 25 | 'secret' => env('SES_SECRET'), 26 | 'region' => env('SES_REGION', 'us-east-1'), 27 | ], 28 | 29 | 'sparkpost' => [ 30 | 'secret' => env('SPARKPOST_SECRET'), 31 | ], 32 | 33 | 'stripe' => [ 34 | 'model' => App\User::class, 35 | 'key' => env('STRIPE_KEY'), 36 | 'secret' => env('STRIPE_SECRET'), 37 | 'webhook' => [ 38 | 'secret' => env('STRIPE_WEBHOOK_SECRET'), 39 | 'tolerance' => env('STRIPE_WEBHOOK_TOLERANCE', 300), 40 | ], 41 | ], 42 | 43 | ]; 44 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => realpath(storage_path('framework/views')), 32 | 33 | ]; 34 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | define(App\User::class, function (Faker $faker) { 17 | return [ 18 | 'name' => $faker->name, 19 | 'email' => $faker->unique()->safeEmail, 20 | 'email_verified_at' => now(), 21 | 'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret 22 | 'remember_token' => str_random(10), 23 | ]; 24 | }); 25 | 26 | $factory->define(App\Category::class, function (Faker $faker) { 27 | return [ 28 | 'cat_name' => $faker->name, 29 | ]; 30 | }); 31 | $factory->define(App\Post::class, function (Faker $faker) { 32 | return [ 33 | 'cat_id' => rand(1,10), 34 | 'user_id' => rand(1,10), 35 | 'comment_id' => rand(1,10), 36 | 'title' => $faker->sentence, 37 | 'description' => $faker->paragraph, 38 | 'photo' => $faker->imageUrl, 39 | ]; 40 | }); -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->string('email',100)->unique(); 20 | $table->timestamp('email_verified_at')->nullable(); 21 | $table->string('password'); 22 | $table->rememberToken(); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('users'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_resets_table.php: -------------------------------------------------------------------------------- 1 | string('email',100)->index(); 18 | $table->string('token'); 19 | $table->timestamp('created_at')->nullable(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('password_resets'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2018_11_25_135527_create_categories_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('cat_name')->nullable(); 19 | $table->timestamps(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('categories'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2018_11_25_135634_create_posts_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->integer('cat_id')->unsigned()->nullable(); 19 | $table->integer('user_id')->unsigned()->nullable(); 20 | $table->integer('comment_id')->unsigned()->nullable(); 21 | $table->string('title')->nullable(); 22 | $table->text('description')->nullable(); 23 | $table->string('photo')->nullable(); 24 | $table->timestamps(); 25 | }); 26 | } 27 | 28 | /** 29 | * Reverse the migrations. 30 | * 31 | * @return void 32 | */ 33 | public function down() 34 | { 35 | Schema::dropIfExists('posts'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /database/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call(UsersTableSeeder::class); 15 | factory(App\Post::class,10)->create(); 16 | factory(App\Category::class,10)->create(); 17 | factory(App\User::class,10)->create(); 18 | 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "npm run development", 5 | "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 6 | "watch": "npm run development -- --watch", 7 | "watch-poll": "npm run watch -- --watch-poll", 8 | "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", 9 | "prod": "npm run production", 10 | "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" 11 | }, 12 | "devDependencies": { 13 | "@fortawesome/fontawesome-free": "^5.6.1", 14 | "axios": "^0.18.0", 15 | "bootstrap": "^4.0.0", 16 | "cross-env": "^5.1", 17 | "jquery": "^3.2", 18 | "laravel-mix": "^2.0", 19 | "lodash": "^4.17.5", 20 | "popper.js": "^1.12", 21 | "vue": "^2.5.17" 22 | }, 23 | "dependencies": { 24 | "admin-lte": "^3.0.0-alpha.2", 25 | "moment": "^2.22.2", 26 | "sweetalert2": "^7.29.2", 27 | "v-markdown-editor": "^1.0.8", 28 | "vform": "^1.0.0", 29 | "vue-router": "^3.0.2", 30 | "vuex": "^3.0.1" 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./tests/Unit 14 | 15 | 16 | 17 | ./tests/Feature 18 | 19 | 20 | 21 | 22 | ./app 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Handle Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /public/assets/admin/default/admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/admin/default/admin.png -------------------------------------------------------------------------------- /public/assets/public/asset/contactform/Readme.txt: -------------------------------------------------------------------------------- 1 | Fully working PHP/AJAX contact form is available in the pro version. 2 | You can buy it from: https://bootstrapmade.com/flattern-multipurpose-bootstrap-template/ 3 | -------------------------------------------------------------------------------- /public/assets/public/asset/contactform/contactform.js: -------------------------------------------------------------------------------- 1 | jQuery(document).ready(function($) { 2 | "use strict"; 3 | 4 | //Contact 5 | $('form.contactForm').submit(function() { 6 | var f = $(this).find('.form-group'), 7 | ferror = false, 8 | emailExp = /^[^\s()<>@,;:\/]+@\w[\w\.-]+\.[a-z]{2,}$/i; 9 | 10 | f.children('input').each(function() { // run all inputs 11 | 12 | var i = $(this); // current input 13 | var rule = i.attr('data-rule'); 14 | 15 | if (rule !== undefined) { 16 | var ierror = false; // error flag for current input 17 | var pos = rule.indexOf(':', 0); 18 | if (pos >= 0) { 19 | var exp = rule.substr(pos + 1, rule.length); 20 | rule = rule.substr(0, pos); 21 | } else { 22 | rule = rule.substr(pos + 1, rule.length); 23 | } 24 | 25 | switch (rule) { 26 | case 'required': 27 | if (i.val() === '') { 28 | ferror = ierror = true; 29 | } 30 | break; 31 | 32 | case 'minlen': 33 | if (i.val().length < parseInt(exp)) { 34 | ferror = ierror = true; 35 | } 36 | break; 37 | 38 | case 'email': 39 | if (!emailExp.test(i.val())) { 40 | ferror = ierror = true; 41 | } 42 | break; 43 | 44 | case 'checked': 45 | if (!i.attr('checked')) { 46 | ferror = ierror = true; 47 | } 48 | break; 49 | 50 | case 'regexp': 51 | exp = new RegExp(exp); 52 | if (!exp.test(i.val())) { 53 | ferror = ierror = true; 54 | } 55 | break; 56 | } 57 | i.next('.validation').html((ierror ? (i.attr('data-msg') !== undefined ? i.attr('data-msg') : 'wrong Input') : '')).show('blind'); 58 | } 59 | }); 60 | f.children('textarea').each(function() { // run all inputs 61 | 62 | var i = $(this); // current input 63 | var rule = i.attr('data-rule'); 64 | 65 | if (rule !== undefined) { 66 | var ierror = false; // error flag for current input 67 | var pos = rule.indexOf(':', 0); 68 | if (pos >= 0) { 69 | var exp = rule.substr(pos + 1, rule.length); 70 | rule = rule.substr(0, pos); 71 | } else { 72 | rule = rule.substr(pos + 1, rule.length); 73 | } 74 | 75 | switch (rule) { 76 | case 'required': 77 | if (i.val() === '') { 78 | ferror = ierror = true; 79 | } 80 | break; 81 | 82 | case 'minlen': 83 | if (i.val().length < parseInt(exp)) { 84 | ferror = ierror = true; 85 | } 86 | break; 87 | } 88 | i.next('.validation').html((ierror ? (i.attr('data-msg') != undefined ? i.attr('data-msg') : 'wrong Input') : '')).show('blind'); 89 | } 90 | }); 91 | if (ferror) return false; 92 | else var str = $(this).serialize(); 93 | var action = $(this).attr('action'); 94 | if( ! action ) { 95 | action = 'contactform/contactform.php'; 96 | } 97 | $.ajax({ 98 | type: "POST", 99 | url: action, 100 | data: str, 101 | success: function(msg) { 102 | // alert(msg); 103 | if (msg == 'OK') { 104 | $("#sendmessage").addClass("show"); 105 | $("#errormessage").removeClass("show"); 106 | $('.contactForm').find("input, textarea").val(""); 107 | } else { 108 | $("#sendmessage").removeClass("show"); 109 | $("#errormessage").addClass("show"); 110 | $('#errormessage').html(msg); 111 | } 112 | 113 | } 114 | }); 115 | return false; 116 | }); 117 | 118 | }); 119 | -------------------------------------------------------------------------------- /public/assets/public/asset/css/fancybox/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/css/fancybox/blank.gif -------------------------------------------------------------------------------- /public/assets/public/asset/css/fancybox/fancybox_loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/css/fancybox/fancybox_loading.gif -------------------------------------------------------------------------------- /public/assets/public/asset/css/fancybox/fancybox_overlay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/css/fancybox/fancybox_overlay.png -------------------------------------------------------------------------------- /public/assets/public/asset/css/fancybox/fancybox_sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/css/fancybox/fancybox_sprite.png -------------------------------------------------------------------------------- /public/assets/public/asset/css/flexslider.css: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery FlexSlider v2.0 3 | * http://www.woothemes.com/flexslider/ 4 | * 5 | * Copyright 2012 WooThemes 6 | * Free to use under the GPLv2 license. 7 | * http://www.gnu.org/licenses/gpl-2.0.html 8 | * 9 | * Contributing author: Tyler Smith (@mbmufffin) 10 | */ 11 | 12 | 13 | /* Browser Resets */ 14 | .flex-container a:active, 15 | .flexslider a:active, 16 | .flex-container a:focus, 17 | .flexslider a:focus {outline: none;} 18 | .slides, 19 | .flex-control-nav, 20 | .flex-direction-nav {margin: 0; padding: 0; list-style: none;} 21 | 22 | /* FlexSlider Necessary Styles 23 | *********************************/ 24 | .flexslider {margin: 0; padding: 0;} 25 | .flexslider .slides > li {display: none; -webkit-backface-visibility: hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping */ 26 | .flexslider .slides img {width: 100%; display: block;} 27 | .flex-pauseplay span {text-transform: capitalize;} 28 | 29 | /* Clearfix for the .slides element */ 30 | .slides:after {content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;} 31 | html[xmlns] .slides {display: block;} 32 | * html .slides {height: 1%;} 33 | 34 | /* No JavaScript Fallback */ 35 | /* If you are not using another script, such as Modernizr, make sure you 36 | * include js that eliminates this class on page load */ 37 | .no-js .slides > li:first-child {display: block;} 38 | 39 | 40 | /* FlexSlider Default Theme 41 | *********************************/ 42 | .flexslider {margin: 0 0 60px; background: #fff; border: 4px solid #fff; position: relative; -webkit-border-radius: 0; -moz-border-radius: 0; -o-border-radius: 0; border-radius: 0; box-shadow: none; -webkit-box-shadow: none; -moz-box-shadow: none; -o-box-shadow: none; zoom: 1;} 43 | .flex-viewport {max-height: 2000px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; transition: all 1s ease;} 44 | .loading .flex-viewport {max-height: 300px;} 45 | .flexslider .slides {zoom: 1;} 46 | 47 | .carousel li {margin-right: 5px} 48 | 49 | 50 | /* Direction Nav */ 51 | .flex-direction-nav {*height: 0;} 52 | .flex-direction-nav a {width: 30px; height: 30px; margin: -20px 0 0; display: block; background: url(images/bg_direction_nav.png) no-repeat 0 0; position: absolute; top: 50%; z-index: 10; cursor: pointer; text-indent: -9999px; opacity: 0; -webkit-transition: all .3s ease;} 53 | .flex-direction-nav .flex-next {background-position: 100% 0; right: -36px; } 54 | .flex-direction-nav .flex-prev {left: -36px;} 55 | .flexslider:hover .flex-next {opacity: 0.8; right: 5px;} 56 | .flexslider:hover .flex-prev {opacity: 0.8; left: 5px;} 57 | .flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover {opacity: 1;} 58 | .flex-direction-nav .flex-disabled {opacity: .3!important; filter:alpha(opacity=30); cursor: default;} 59 | 60 | /* Control Nav */ 61 | .flex-control-nav {width: 100%; position: absolute; bottom: -40px; text-align: center;} 62 | .flex-control-nav li {margin: 0 6px; display: inline-block; zoom: 1; *display: inline;} 63 | .flex-control-paging li a {width: 11px; height: 11px; display: block; background: #666; background: rgba(0,0,0,0.5); cursor: pointer; text-indent: -9999px; -webkit-border-radius: 20px; -moz-border-radius: 20px; -o-border-radius: 20px; border-radius: 20px; box-shadow: inset 0 0 3px rgba(0,0,0,0.3);} 64 | .flex-control-paging li a:hover { background: #333; background: rgba(0,0,0,0.7); } 65 | .flex-control-paging li a.flex-active { background: #000; background: rgba(0,0,0,0.9); cursor: default; } 66 | 67 | .flex-control-thumbs {margin: 5px 0 0; position: static; overflow: hidden;} 68 | .flex-control-thumbs li {width: 25%; float: left; margin: 0;} 69 | .flex-control-thumbs img {width: 100%; display: block; opacity: .7; cursor: pointer;} 70 | .flex-control-thumbs img:hover {opacity: 1;} 71 | .flex-control-thumbs .flex-active {opacity: 1; cursor: default;} 72 | 73 | @media screen and (max-width: 860px) { 74 | .flex-direction-nav .flex-prev {opacity: 1; left: 0;} 75 | .flex-direction-nav .flex-next {opacity: 1; right: 0;} 76 | } -------------------------------------------------------------------------------- /public/assets/public/asset/css/jcarousel.css: -------------------------------------------------------------------------------- 1 | 2 | .jcarousel-skin-tango{ 3 | float:left; 4 | width:100%; 5 | margin:0; 6 | margin-bottom:50px; 7 | padding:0; 8 | } 9 | 10 | .jcarousel-skin-tango li{ 11 | position:relative; 12 | float:left; 13 | margin:0; 14 | width:auto; 15 | padding:0; 16 | } 17 | 18 | .jcarousel-skin-tango .jcarousel-container { 19 | width:100%; 20 | } 21 | 22 | .jcarousel-skin-tango .jcarousel-direction-rtl { 23 | direction: rtl; 24 | width:100%; 25 | } 26 | 27 | .jcarousel-skin-tango .jcarousel-container-horizontal { 28 | width:100%; 29 | padding: 0; 30 | } 31 | 32 | .jcarousel-skin-tango .jcarousel-clip { 33 | overflow: hidden; 34 | width:100%; 35 | } 36 | 37 | .jcarousel-skin-tango .jcarousel-clip-horizontal { 38 | width:100%; 39 | height: auto; 40 | } 41 | 42 | .jcarousel-skin-tango .jcarousel-item { 43 | margin-left: 0; 44 | margin-right: 20px; 45 | margin-bottom: 0; 46 | } 47 | 48 | 49 | /** 50 | * Horizontal Buttons 51 | */ 52 | .jcarousel-skin-tango .jcarousel-next-horizontal { 53 | position: absolute; 54 | top: -50px; 55 | right: 15px; 56 | width: 25px; 57 | height: 14px; 58 | cursor: pointer; 59 | -webkit-transition: all 0.5s ease-out; 60 | -moz-transition: all 0.5s ease-out; 61 | -o-transition: all 0.5s ease-out; 62 | transition: all 0.5s ease-out; 63 | } 64 | 65 | .jcarousel-skin-tango .jcarousel-next-horizontal:hover, 66 | .jcarousel-skin-tango .jcarousel-next-horizontal:focus, 67 | .jcarousel-skin-tango .jcarousel-next-horizontal:active{ 68 | background-position: -75px 0; 69 | } 70 | 71 | .jcarousel-skin-tango .jcarousel-next-disabled-horizontal, 72 | .jcarousel-skin-tango .jcarousel-next-disabled-horizontal:hover, 73 | .jcarousel-skin-tango .jcarousel-next-disabled-horizontal:focus, 74 | .jcarousel-skin-tango .jcarousel-next-disabled-horizontal:active { 75 | cursor: default; 76 | background-color:#f2f2f2; 77 | background-position: -50px 0; 78 | } 79 | 80 | .jcarousel-skin-tango .jcarousel-prev-horizontal { 81 | position: absolute; 82 | top: -50px; 83 | right: 30px; 84 | cursor: pointer; 85 | -webkit-transition: all 0.5s ease-out; 86 | -moz-transition: all 0.5s ease-out; 87 | -o-transition: all 0.5s ease-out; 88 | transition: all 0.5s ease-out; 89 | 90 | font-family: FontAwesome; 91 | font-weight: normal; 92 | font-style: normal; 93 | text-decoration: inherit; 94 | -webkit-font-smoothing: antialiased; 95 | 96 | /* sprites.less reset */ 97 | display: inline; 98 | width: auto; 99 | height: auto; 100 | line-height: normal; 101 | vertical-align: baseline; 102 | background-image: none; 103 | background-position: 0% 0%; 104 | background-repeat: repeat; 105 | margin-top: 0; 106 | margin: 0; 107 | display: inline-block !important; 108 | text-align: center !important; 109 | color: #fff; 110 | width: 18px; 111 | height: 18px; 112 | padding:3px; 113 | font-size: 12px; 114 | line-height: 18px; 115 | text-shadow:none; 116 | cursor: pointer; 117 | background-color: #444; 118 | } 119 | 120 | .jcarousel-skin-tango .jcarousel-prev-horizontal:before { 121 | content: "\f104"; 122 | } 123 | .jcarousel-skin-tango .jcarousel-next-horizontal:before { 124 | content: "\f105"; } 125 | 126 | .jcarousel-skin-tango .jcarousel-next-horizontal { 127 | position: absolute; 128 | top: -50px; 129 | right: 0px; 130 | cursor: pointer; 131 | -webkit-transition: all 0.5s ease-out; 132 | -moz-transition: all 0.5s ease-out; 133 | -o-transition: all 0.5s ease-out; 134 | transition: all 0.5s ease-out; 135 | 136 | font-family: FontAwesome; 137 | font-weight: normal; 138 | font-style: normal; 139 | text-decoration: inherit; 140 | -webkit-font-smoothing: antialiased; 141 | 142 | /* sprites.less reset */ 143 | display: inline; 144 | width: auto; 145 | height: auto; 146 | line-height: normal; 147 | vertical-align: baseline; 148 | background-image: none; 149 | background-position: 0% 0%; 150 | background-repeat: repeat; 151 | margin-top: 0; 152 | margin-bottom:20px; 153 | display: inline-block !important; 154 | text-align: center !important; 155 | color: #fff; 156 | width: 18px; 157 | height: 18px; 158 | padding:3px; 159 | font-size: 12px; 160 | line-height: 18px; 161 | text-shadow:none; 162 | cursor: pointer; 163 | background-color: #444; 164 | } 165 | 166 | .jcarousel-skin-tango .jcarousel-prev-horizontal:hover, 167 | .jcarousel-skin-tango .jcarousel-prev-horizontal:focus { 168 | background-position: 0 0; 169 | } 170 | 171 | 172 | 173 | .jcarousel-skin-tango .jcarousel-prev-disabled-horizontal, 174 | .jcarousel-skin-tango .jcarousel-prev-disabled-horizontal:hover, 175 | .jcarousel-skin-tango .jcarousel-prev-disabled-horizontal:focus, 176 | .jcarousel-skin-tango .jcarousel-prev-disabled-horizontal:active { 177 | cursor: default; 178 | background-position: -25px 0; 179 | background-color:#ddd; 180 | } 181 | 182 | -------------------------------------------------------------------------------- /public/assets/public/asset/font/customicon/Icons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/font/customicon/Icons.eot -------------------------------------------------------------------------------- /public/assets/public/asset/font/customicon/Icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/font/customicon/Icons.ttf -------------------------------------------------------------------------------- /public/assets/public/asset/font/customicon/Icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/font/customicon/Icons.woff -------------------------------------------------------------------------------- /public/assets/public/asset/font/fontawesome/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/font/fontawesome/FontAwesome.otf -------------------------------------------------------------------------------- /public/assets/public/asset/font/fontawesome/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/font/fontawesome/fontawesome-webfont.eot -------------------------------------------------------------------------------- /public/assets/public/asset/font/fontawesome/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/font/fontawesome/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /public/assets/public/asset/font/fontawesome/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/font/fontawesome/fontawesome-webfont.woff -------------------------------------------------------------------------------- /public/assets/public/asset/ico/apple-touch-icon-114-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/ico/apple-touch-icon-114-precomposed.png -------------------------------------------------------------------------------- /public/assets/public/asset/ico/apple-touch-icon-144-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/ico/apple-touch-icon-144-precomposed.png -------------------------------------------------------------------------------- /public/assets/public/asset/ico/apple-touch-icon-57-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/ico/apple-touch-icon-57-precomposed.png -------------------------------------------------------------------------------- /public/assets/public/asset/ico/apple-touch-icon-72-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/ico/apple-touch-icon-72-precomposed.png -------------------------------------------------------------------------------- /public/assets/public/asset/ico/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/ico/favicon.ico -------------------------------------------------------------------------------- /public/assets/public/asset/ico/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/ico/favicon.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/avatar.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/bodybg/bg1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/bodybg/bg1.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/bodybg/bg10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/bodybg/bg10.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/bodybg/bg2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/bodybg/bg2.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/bodybg/bg3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/bodybg/bg3.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/bodybg/bg4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/bodybg/bg4.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/bodybg/bg5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/bodybg/bg5.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/bodybg/bg6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/bodybg/bg6.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/bodybg/bg7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/bodybg/bg7.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/bodybg/bg8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/bodybg/bg8.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/bodybg/bg9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/bodybg/bg9.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/blog/65x65/thumb1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/blog/65x65/thumb1.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/blog/65x65/thumb2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/blog/65x65/thumb2.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/blog/65x65/thumb3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/blog/65x65/thumb3.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/blog/img1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/blog/img1.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/blog/img2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/blog/img2.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/blog/img3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/blog/img3.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/blog/thumbs/img1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/blog/thumbs/img1.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/blog/thumbs/img2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/blog/thumbs/img2.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/blog/thumbs/img3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/blog/thumbs/img3.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/blog/thumbs/img4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/blog/thumbs/img4.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/blog/thumbs/no-thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/blog/thumbs/no-thumb.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/blog/thumbs/quote-thumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/blog/thumbs/quote-thumb.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/blog/thumbs/small1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/blog/thumbs/small1.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/clients/client1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/clients/client1.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/clients/client2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/clients/client2.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/clients/client3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/clients/client3.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/clients/client4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/clients/client4.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/clients/client5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/clients/client5.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/clients/client6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/clients/client6.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/dummy-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/dummy-1.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/team1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/team1.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/team2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/team2.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/team3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/team3.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/team4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/team4.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/dummies/testimonial-author1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/dummies/testimonial-author1.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/logo.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/nivo-bullets.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/nivo-bullets.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/slides/nivo/bg-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/slides/nivo/bg-1.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/slides/nivo/bg-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/slides/nivo/bg-2.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/slides/nivo/bg-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/slides/nivo/bg-3.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/slides/parallax/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/slides/parallax/1.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/slides/parallax/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/slides/parallax/2.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/slides/parallax/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/slides/parallax/3.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/slides/parallax/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/slides/parallax/4.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/slides/parallax/arrows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/slides/parallax/arrows.png -------------------------------------------------------------------------------- /public/assets/public/asset/img/slides/parallax/bg1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/slides/parallax/bg1.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/slides/slitslider/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/slides/slitslider/1.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/slides/slitslider/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/slides/slitslider/2.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/slides/slitslider/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/slides/slitslider/3.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/slides/slitslider/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/slides/slitslider/4.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/slides/slitslider/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/slides/slitslider/5.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/works/full/image-01-full.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/works/full/image-01-full.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/works/full/image-02-full.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/works/full/image-02-full.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/works/full/image-03-full.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/works/full/image-03-full.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/works/full/image-04-full.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/works/full/image-04-full.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/works/full/image-05-full.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/works/full/image-05-full.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/works/full/image-06-full.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/works/full/image-06-full.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/works/full/image-07-full.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/works/full/image-07-full.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/works/full/image-08-full.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/works/full/image-08-full.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/works/thumbs/image-01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/works/thumbs/image-01.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/works/thumbs/image-02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/works/thumbs/image-02.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/works/thumbs/image-03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/works/thumbs/image-03.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/works/thumbs/image-04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/works/thumbs/image-04.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/works/thumbs/image-05.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/works/thumbs/image-05.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/works/thumbs/image-06.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/works/thumbs/image-06.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/works/thumbs/image-07.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/works/thumbs/image-07.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/img/works/thumbs/image-08.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/assets/public/asset/img/works/thumbs/image-08.jpg -------------------------------------------------------------------------------- /public/assets/public/asset/js/google-code-prettify/prettify.css: -------------------------------------------------------------------------------- 1 | .com { color: #93a1a1; } 2 | .lit { color: #195f91; } 3 | .pun, .opn, .clo { color: #93a1a1; } 4 | .fun { color: #dc322f; } 5 | .str, .atv { color: #D14; } 6 | .kwd, .prettyprint .tag { color: #1e347b; } 7 | .typ, .atn, .dec, .var { color: teal; } 8 | .pln { color: #48484c; } 9 | 10 | .prettyprint { 11 | padding: 8px; 12 | background-color: #f7f7f9; 13 | border: 1px solid #e1e1e8; 14 | } 15 | .prettyprint.linenums { 16 | -webkit-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; 17 | -moz-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; 18 | box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; 19 | } 20 | 21 | /* Specify class=linenums on a pre to get line numbering */ 22 | ol.linenums { 23 | margin: 0 0 0 33px; /* IE indents via margin-left */ 24 | } 25 | ol.linenums li { 26 | padding-left: 12px; 27 | color: #bebec5; 28 | line-height: 20px; 29 | text-shadow: 0 1px 0 #fff; 30 | } -------------------------------------------------------------------------------- /public/assets/public/asset/js/jcarousel/setting.js: -------------------------------------------------------------------------------- 1 | jQuery(document).ready(function() { 2 | jQuery('#mycarousel').jcarousel(); 3 | jQuery('#mycarousel1').jcarousel(); 4 | }); -------------------------------------------------------------------------------- /public/assets/public/asset/js/jquery.ba-cond.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * cond - v0.1 - 6/10/2009 3 | * http://benalman.com/projects/jquery-cond-plugin/ 4 | * 5 | * Copyright (c) 2009 "Cowboy" Ben Alman 6 | * Licensed under the MIT license 7 | * http://benalman.com/about/license/ 8 | * 9 | * Based on suggestions and sample code by Stephen Band and DBJDBJ in the 10 | * jquery-dev Google group: http://bit.ly/jqba1 11 | */ 12 | (function($){$.fn.cond=function(){var e,a=arguments,b=0,f,d,c;while(!f&&b' + '

' + $(this.element).parent().find('img').attr('alt') + '

'; 31 | }, 32 | helpers : { 33 | title : { type: 'inside' }, 34 | } 35 | }); 36 | 37 | 38 | }); 39 | $(this).addClass("active"); 40 | return false; 41 | }); 42 | 43 | }//if quicksand 44 | 45 | }); -------------------------------------------------------------------------------- /public/assets/public/asset/js/quicksand/setting.js: -------------------------------------------------------------------------------- 1 | jQuery.noConflict(); 2 | jQuery(document).ready(function($){ 3 | 4 | if (jQuery().quicksand) { 5 | 6 | // Clone applications to get a second collection 7 | var $data = $(".portfolio-area").clone(); 8 | 9 | //NOTE: Only filter on the main portfolio page, not on the subcategory pages 10 | $('.portfolio-categ li').click(function(e) { 11 | $(".filter li").removeClass("active"); 12 | // Use the last category class as the category to filter by. This means that multiple categories are not supported (yet) 13 | var filterClass=$(this).attr('class').split(' ').slice(-1)[0]; 14 | 15 | if (filterClass == 'all') { 16 | var $filteredData = $data.find('.item-thumbs'); 17 | } else { 18 | var $filteredData = $data.find('.item-thumbs[data-type=' + filterClass + ']'); 19 | } 20 | $(".portfolio-area").quicksand($filteredData, { 21 | duration: 600, 22 | adjustHeight: 'auto' 23 | } 24 | $(this).addClass("active"); 25 | return false; 26 | }); 27 | 28 | }//if quicksand 29 | 30 | }); -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/favicon.ico -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.ttf -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.eot -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.ttf -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.eot -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff2 -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | define('LARAVEL_START', microtime(true)); 11 | 12 | /* 13 | |-------------------------------------------------------------------------- 14 | | Register The Auto Loader 15 | |-------------------------------------------------------------------------- 16 | | 17 | | Composer provides a convenient, automatically generated class loader for 18 | | our application. We just need to utilize it! We'll simply require it 19 | | into the script here so that we don't have to worry about manual 20 | | loading any of our classes later on. It feels great to relax. 21 | | 22 | */ 23 | 24 | require __DIR__.'/../vendor/autoload.php'; 25 | 26 | /* 27 | |-------------------------------------------------------------------------- 28 | | Turn On The Lights 29 | |-------------------------------------------------------------------------- 30 | | 31 | | We need to illuminate PHP development, so let us turn on the lights. 32 | | This bootstraps the framework and gets it ready for use, then it 33 | | will load up this application so that we can run it and send 34 | | the responses back to the browser and delight our users. 35 | | 36 | */ 37 | 38 | $app = require_once __DIR__.'/../bootstrap/app.php'; 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Run The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once we have the application, we can handle the incoming request 46 | | through the kernel, and send the associated response back to 47 | | the client's browser allowing them to enjoy the creative 48 | | and wonderful application we have prepared for them. 49 | | 50 | */ 51 | 52 | $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); 53 | 54 | $response = $kernel->handle( 55 | $request = Illuminate\Http\Request::capture() 56 | ); 57 | 58 | $response->send(); 59 | 60 | $kernel->terminate($request, $response); 61 | -------------------------------------------------------------------------------- /public/mix-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "/js/app.js": "/js/app.js", 3 | "/css/app.css": "/css/app.css" 4 | } 5 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /public/svg/404.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/uploadimage/1545388049.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/uploadimage/1545388049.png -------------------------------------------------------------------------------- /public/uploadimage/1545768762.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/uploadimage/1545768762.png -------------------------------------------------------------------------------- /public/uploadimage/1545855101.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/uploadimage/1545855101.png -------------------------------------------------------------------------------- /public/uploadimage/1545855313.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csesumonpro/laravel-vue-js-super-blog/fa020c268957d22974ee7323468ab645e198d91e/public/uploadimage/1545855313.png -------------------------------------------------------------------------------- /public/web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 |

2 | 3 |

Facebook Group | 4 | Google Plus | 5 | Youtube | 6 | Web Site | 7 | Like Us

8 | 9 | # About Laravel vue js Blog Project 10 | 11 | ![laravel vue js vuex vue router blog project](https://user-images.githubusercontent.com/29582239/49328894-e5dff680-f5a1-11e8-9190-c6b25730bfb5.png) 12 | 13 | ##Here are the things you will learn in this series: 14 | * How use Vue Router with Laravel(Using for routing) 15 | * How to Use Vue filter 16 | * How use Vuex with Laravel (Used for state management) 17 | * How to Install AdminLTE 3 (Template used for admin panel) 18 | * How to Use Font Awesome 5 on Laravel (Used for admin panel icon) 19 | * Vform validation with Laravel (Used for form validation) 20 | * Relational Database with Laravel (Used for Maintainance DB) 21 | * Axios and Ajax Request (Passing request for fetch and crud operation) 22 | * How to Use Moment js on Laravel (Used for formating date time) 23 | * How to Use sweetalert2 (Used for flash message) 24 | * How to Image intervation with Laravel (Used for image resize) 25 | * How to Use lodash 26 | * And much more... 27 |
28 | 29 |
  • Clone the repository with git clone
  • 30 |
  • Copy .env.example file to .env and edit database credentials there
  • 31 |
  • Run composer install
  • 32 |
  • Run php artisan key:generate
  • 33 |
  • Run php artisan migrate
  • 34 |
  • Run npm install
  • 35 |
  • Run npm run dev
  • 36 | That's it - load the homepage. 37 |
    -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | 2 | require('./bootstrap'); 3 | window.Vue = require('vue'); 4 | 5 | // editor support 6 | import 'v-markdown-editor/dist/index.css'; 7 | import Editor from 'v-markdown-editor' 8 | Vue.use(Editor); 9 | // Support vuex 10 | import Vuex from 'vuex' 11 | Vue.use(Vuex) 12 | import storeData from "./store/index" 13 | const store = new Vuex.Store( 14 | storeData 15 | ) 16 | //support moment js 17 | import {filter} from './filter' 18 | // vue router 19 | import VueRouter from 'vue-router' 20 | Vue.use(VueRouter) 21 | 22 | import {routes} from './routes'; 23 | 24 | Vue.component('example-component', require('./components/ExampleComponent.vue')); 25 | Vue.component('admin-main', require('./components/admin/AdminMaster.vue')); 26 | Vue.component('home-main', require('./components/public/PublicMaster.vue')); 27 | 28 | // V-form 29 | import { Form, HasError, AlertError } from 'vform' 30 | 31 | Vue.component(HasError.name, HasError) 32 | Vue.component(AlertError.name, AlertError) 33 | window.Form = Form; 34 | // Sweet alert 2 35 | import swal from 'sweetalert2' 36 | window.swal = swal; 37 | const toast = swal.mixin({ 38 | toast: true, 39 | position: 'top-end', 40 | showConfirmButton: false, 41 | timer: 3000 42 | }); 43 | 44 | window.toast = toast 45 | 46 | const router = new VueRouter({ 47 | routes, // short for `routes: routes` 48 | mode:'hash', 49 | 50 | }) 51 | 52 | 53 | 54 | const app = new Vue({ 55 | el: '#app', 56 | router, 57 | store, 58 | 59 | }); 60 | 61 | -------------------------------------------------------------------------------- /resources/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | 2 | window._ = require('lodash'); 3 | 4 | /** 5 | * We'll load jQuery and the Bootstrap jQuery plugin which provides support 6 | * for JavaScript based Bootstrap features such as modals and tabs. This 7 | * code may be modified to fit the specific needs of your application. 8 | */ 9 | 10 | try { 11 | window.Popper = require('popper.js').default; 12 | window.$ = window.jQuery = require('jquery'); 13 | 14 | require('bootstrap'); 15 | require('admin-lte'); 16 | // require('@fortawesome/fontawesome-free'); 17 | } catch (e) {} 18 | 19 | /** 20 | * We'll load the axios HTTP library which allows us to easily issue requests 21 | * to our Laravel back-end. This library automatically handles sending the 22 | * CSRF token as a header based on the value of the "XSRF" token cookie. 23 | */ 24 | 25 | window.axios = require('axios'); 26 | 27 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; 28 | 29 | /** 30 | * Next we will register the CSRF Token as a common header with Axios so that 31 | * all outgoing HTTP requests automatically have it attached. This is just 32 | * a simple convenience so we don't have to attach every token manually. 33 | */ 34 | 35 | let token = document.head.querySelector('meta[name="csrf-token"]'); 36 | 37 | if (token) { 38 | window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content; 39 | } else { 40 | console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token'); 41 | } 42 | 43 | /** 44 | * Echo exposes an expressive API for subscribing to channels and listening 45 | * for events that are broadcast by Laravel. Echo and event broadcasting 46 | * allows your team to easily build robust real-time web applications. 47 | */ 48 | 49 | // import Echo from 'laravel-echo' 50 | 51 | // window.Pusher = require('pusher-js'); 52 | 53 | // window.Echo = new Echo({ 54 | // broadcaster: 'pusher', 55 | // key: process.env.MIX_PUSHER_APP_KEY, 56 | // cluster: process.env.MIX_PUSHER_APP_CLUSTER, 57 | // encrypted: true 58 | // }); 59 | -------------------------------------------------------------------------------- /resources/js/components/ExampleComponent.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /resources/js/components/admin/AdminHome.vue: -------------------------------------------------------------------------------- 1 | 33 | -------------------------------------------------------------------------------- /resources/js/components/admin/AdminMaster.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /resources/js/components/admin/category/Edit.vue: -------------------------------------------------------------------------------- 1 | 39 | 40 | 75 | 76 | -------------------------------------------------------------------------------- /resources/js/components/admin/category/New.vue: -------------------------------------------------------------------------------- 1 | 39 | 40 | 68 | 69 | -------------------------------------------------------------------------------- /resources/js/components/admin/post/List.vue: -------------------------------------------------------------------------------- 1 | 64 | 65 | 97 | 98 | -------------------------------------------------------------------------------- /resources/js/components/public/PublicHome.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /resources/js/components/public/PublicMaster.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /resources/js/components/public/blog/BlogPost.vue: -------------------------------------------------------------------------------- 1 | 65 | 66 | 98 | 99 | -------------------------------------------------------------------------------- /resources/js/components/public/blog/BlogSidebar.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 67 | 68 | -------------------------------------------------------------------------------- /resources/js/components/public/blog/SingleBlog.vue: -------------------------------------------------------------------------------- 1 | 39 | 40 | 67 | 68 | -------------------------------------------------------------------------------- /resources/js/filter.js: -------------------------------------------------------------------------------- 1 | import moment from 'moment' 2 | import Vue from 'vue' 3 | Vue.filter('timeformat',(arg)=>{ 4 | return moment(arg).format("MMM Do YYYY") 5 | }) 6 | 7 | Vue.filter('sortlength',function (text,length,suffix) { 8 | return text.substring(0,length)+suffix; 9 | }) -------------------------------------------------------------------------------- /resources/js/routes.js: -------------------------------------------------------------------------------- 1 | import AdminHome from './components/admin/AdminHome.vue' 2 | import CategoryList from './components/admin/category/List.vue' 3 | import AddCategory from './components/admin/category/New.vue' 4 | import EditCategory from './components/admin/category/Edit.vue' 5 | 6 | // FrontEnd Component 7 | import PublicHome from './components/public/PublicHome.vue' 8 | import BlogPost from './components/public/blog/BlogPost.vue' 9 | import SinglePost from './components/public/blog/SingleBlog.vue' 10 | 11 | // Post 12 | import PostList from './components/admin/post/List.vue' 13 | import AddPost from './components/admin/post/New.vue' 14 | import EditPost from './components/admin/post/Edit.vue' 15 | export const routes = [ 16 | { 17 | path:'/home', 18 | component:AdminHome 19 | }, 20 | { 21 | path:'/category-list', 22 | component:CategoryList 23 | }, 24 | { 25 | path:'/add-category', 26 | component:AddCategory 27 | }, 28 | { 29 | path:'/edit-category/:categoryid', 30 | component:EditCategory 31 | }, 32 | // Post 33 | { 34 | path:'/post-list', 35 | component:PostList 36 | }, 37 | { 38 | path:'/add-post', 39 | component:AddPost 40 | }, 41 | { 42 | path:'/edit-post/:postid', 43 | component:EditPost 44 | }, 45 | 46 | // Frontend Route 47 | { 48 | path:'/', 49 | component:PublicHome 50 | }, 51 | { 52 | path:'/blog', 53 | component:BlogPost 54 | }, 55 | { 56 | path:'/blog/:id', 57 | component:SinglePost 58 | }, 59 | { 60 | path:'/categories/:id', 61 | component:BlogPost 62 | }, 63 | 64 | ]; 65 | 66 | 67 | -------------------------------------------------------------------------------- /resources/js/store/index.js: -------------------------------------------------------------------------------- 1 | export default { 2 | state:{ 3 | category:[], 4 | post:[], 5 | blogpost:[], 6 | singlepost:[], 7 | allcategories:[], 8 | latestpost:[] 9 | }, 10 | getters:{ 11 | getCategory(state){ 12 | return state.category 13 | }, 14 | getAllPost(state){ 15 | return state.post 16 | }, 17 | getblogPost(state){ 18 | return state.blogpost 19 | }, 20 | singlepost(state){ 21 | return state.singlepost 22 | }, 23 | allcategories(state){ 24 | return state.allcategories 25 | }, 26 | latestpost(state){ 27 | return state.latestpost 28 | } 29 | 30 | }, 31 | actions:{ 32 | allCategory(context){ 33 | axios.get('/category') 34 | .then((response)=>{ 35 | context.commit('categoreis',response.data.categories) 36 | }) 37 | }, 38 | gelAllPost(context){ 39 | axios.get('/post') 40 | .then((response)=>{ 41 | console.log(response.data) 42 | context.commit('allpost',response.data.posts) 43 | }) 44 | }, 45 | getblogPost(context){ 46 | axios.get('/blogpost') 47 | .then((response)=>{ 48 | // console.log(response.data) 49 | context.commit('getblogPost',response.data.posts) 50 | }) 51 | }, 52 | getPostById(context,payload){ 53 | axios.get('/singlepost/'+payload) 54 | .then((response)=>{ 55 | context.commit('siglePost',response.data.post) 56 | }) 57 | }, 58 | allcategories(context){ 59 | axios.get('/categories') 60 | .then((response)=>{ 61 | 62 | context.commit('allcategories',response.data.categories) 63 | }) 64 | }, 65 | getPostByCatId(context,payload){ 66 | axios.get('/categorypost/'+payload) 67 | .then((response)=>{ 68 | console.log(response.data.posts) 69 | context.commit('getPostByCatId',response.data.posts) 70 | }) 71 | }, 72 | SearchPost(context,payload){ 73 | axios.get('/search?s='+payload) 74 | .then((response)=>{ 75 | context.commit('getSearchPost',response.data.posts) 76 | }) 77 | 78 | }, 79 | latestPost(context){ 80 | axios.get('/latestpost') 81 | .then((response)=>{ 82 | // console.log(response.data) 83 | context.commit('latestpost',response.data.posts) 84 | }) 85 | } 86 | }, 87 | mutations:{ 88 | categoreis(state,data){ 89 | return state.category = data 90 | }, 91 | allpost(state,payload){ 92 | return state.post = payload 93 | }, 94 | getblogPost(state,payload){ 95 | return state.blogpost = payload 96 | }, 97 | siglePost(state,payload){ 98 | return state.singlepost = payload 99 | }, 100 | allcategories(state,payload){ 101 | return state.allcategories = payload 102 | }, 103 | getPostByCatId(state,payload){ 104 | state.blogpost = payload 105 | }, 106 | getSearchPost(state,payload){ 107 | state.blogpost = payload 108 | }, 109 | latestpost(state,payload){ 110 | state.latestpost = payload 111 | } 112 | 113 | 114 | } 115 | } -------------------------------------------------------------------------------- /resources/lang/en/auth.php: -------------------------------------------------------------------------------- 1 | 'These credentials do not match our records.', 17 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /resources/lang/en/passwords.php: -------------------------------------------------------------------------------- 1 | 'Passwords must be at least six characters and match the confirmation.', 17 | 'reset' => 'Your password has been reset!', 18 | 'sent' => 'We have e-mailed your password reset link!', 19 | 'token' => 'This password reset token is invalid.', 20 | 'user' => "We can't find a user with that e-mail address.", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /resources/sass/_variables.scss: -------------------------------------------------------------------------------- 1 | 2 | // Body 3 | $body-bg: #f8fafc; 4 | 5 | // Typography 6 | $font-family-sans-serif: "Nunito", sans-serif; 7 | $font-size-base: 0.9rem; 8 | $line-height-base: 1.6; 9 | 10 | // Colors 11 | $blue: #3490dc; 12 | $indigo: #6574cd; 13 | $purple: #9561e2; 14 | $pink: #f66D9b; 15 | $red: #e3342f; 16 | $orange: #f6993f; 17 | $yellow: #ffed4a; 18 | $green: #38c172; 19 | $teal: #4dc0b5; 20 | $cyan: #6cb2eb; 21 | -------------------------------------------------------------------------------- /resources/sass/app.scss: -------------------------------------------------------------------------------- 1 | 2 | // Fonts 3 | @import url('https://fonts.googleapis.com/css?family=Nunito'); 4 | 5 | // Variables 6 | @import 'variables'; 7 | 8 | 9 | 10 | // Bootstrap 11 | @import '~bootstrap/scss/bootstrap'; 12 | @import "~admin-lte/dist/css/adminlte.css"; 13 | 14 | @import "~@fortawesome/fontawesome-free/css/fontawesome.css"; 15 | @import "~@fortawesome/fontawesome-free/css/all.css"; 16 | @import "~@fortawesome/fontawesome-free/css/brands.css"; 17 | @import "~@fortawesome/fontawesome-free/css/regular.css"; 18 | @import "~@fortawesome/fontawesome-free/css/solid.css"; 19 | 20 | 21 | .navbar-laravel { 22 | background-color: #fff; 23 | box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04); 24 | } 25 | -------------------------------------------------------------------------------- /resources/views/admin/adminmaster.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | AdminLTE 3 | Blank Page 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
    17 | 18 | 31 | 32 | 33 | 34 | 86 | 87 | 88 |
    89 | 90 | 91 |
    92 | 93 | 94 |
    95 |
    96 | Version 1.0 97 |
    98 | Copyright © 2014-2018 FullStack Web. All rights 99 | reserved. 100 |
    101 | 102 | 103 | 106 | 107 |
    108 | 109 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /resources/views/auth/login.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
    5 |
    6 |
    7 |
    8 |
    {{ __('Login') }}
    9 | 10 |
    11 |
    12 | @csrf 13 | 14 |
    15 | 16 | 17 |
    18 | 19 | 20 | @if ($errors->has('email')) 21 | 22 | {{ $errors->first('email') }} 23 | 24 | @endif 25 |
    26 |
    27 | 28 |
    29 | 30 | 31 |
    32 | 33 | 34 | @if ($errors->has('password')) 35 | 36 | {{ $errors->first('password') }} 37 | 38 | @endif 39 |
    40 |
    41 | 42 |
    43 |
    44 |
    45 | 46 | 47 | 50 |
    51 |
    52 |
    53 | 54 |
    55 |
    56 | 59 | 60 | @if (Route::has('password.request')) 61 | 62 | {{ __('Forgot Your Password?') }} 63 | 64 | @endif 65 |
    66 |
    67 |
    68 |
    69 |
    70 |
    71 |
    72 |
    73 | @endsection 74 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/email.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
    5 |
    6 |
    7 |
    8 |
    {{ __('Reset Password') }}
    9 | 10 |
    11 | @if (session('status')) 12 | 15 | @endif 16 | 17 |
    18 | @csrf 19 | 20 |
    21 | 22 | 23 |
    24 | 25 | 26 | @if ($errors->has('email')) 27 | 28 | {{ $errors->first('email') }} 29 | 30 | @endif 31 |
    32 |
    33 | 34 |
    35 |
    36 | 39 |
    40 |
    41 |
    42 |
    43 |
    44 |
    45 |
    46 |
    47 | @endsection 48 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/reset.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
    5 |
    6 |
    7 |
    8 |
    {{ __('Reset Password') }}
    9 | 10 |
    11 |
    12 | @csrf 13 | 14 | 15 | 16 |
    17 | 18 | 19 |
    20 | 21 | 22 | @if ($errors->has('email')) 23 | 24 | {{ $errors->first('email') }} 25 | 26 | @endif 27 |
    28 |
    29 | 30 |
    31 | 32 | 33 |
    34 | 35 | 36 | @if ($errors->has('password')) 37 | 38 | {{ $errors->first('password') }} 39 | 40 | @endif 41 |
    42 |
    43 | 44 |
    45 | 46 | 47 |
    48 | 49 |
    50 |
    51 | 52 |
    53 |
    54 | 57 |
    58 |
    59 |
    60 |
    61 |
    62 |
    63 |
    64 |
    65 | @endsection 66 | -------------------------------------------------------------------------------- /resources/views/auth/register.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
    5 |
    6 |
    7 |
    8 |
    {{ __('Register') }}
    9 | 10 |
    11 |
    12 | @csrf 13 | 14 |
    15 | 16 | 17 |
    18 | 19 | 20 | @if ($errors->has('name')) 21 | 22 | {{ $errors->first('name') }} 23 | 24 | @endif 25 |
    26 |
    27 | 28 |
    29 | 30 | 31 |
    32 | 33 | 34 | @if ($errors->has('email')) 35 | 36 | {{ $errors->first('email') }} 37 | 38 | @endif 39 |
    40 |
    41 | 42 |
    43 | 44 | 45 |
    46 | 47 | 48 | @if ($errors->has('password')) 49 | 50 | {{ $errors->first('password') }} 51 | 52 | @endif 53 |
    54 |
    55 | 56 |
    57 | 58 | 59 |
    60 | 61 |
    62 |
    63 | 64 |
    65 |
    66 | 69 |
    70 |
    71 |
    72 |
    73 |
    74 |
    75 |
    76 |
    77 | @endsection 78 | -------------------------------------------------------------------------------- /resources/views/auth/verify.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
    5 |
    6 |
    7 |
    8 |
    {{ __('Verify Your Email Address') }}
    9 | 10 |
    11 | @if (session('resent')) 12 | 15 | @endif 16 | 17 | {{ __('Before proceeding, please check your email for a verification link.') }} 18 | {{ __('If you did not receive the email') }}, {{ __('click here to request another') }}. 19 |
    20 |
    21 |
    22 |
    23 |
    24 | @endsection 25 | -------------------------------------------------------------------------------- /resources/views/home.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
    5 |
    6 |
    7 |
    8 |
    Dashboard
    9 | 10 |
    11 | @if (session('status')) 12 | 15 | @endif 16 | 17 | You are logged in! 18 |
    19 |
    20 |
    21 |
    22 |
    23 | @endsection 24 | -------------------------------------------------------------------------------- /resources/views/layouts/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | {{ config('app.name', 'Laravel') }} 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
    24 | 74 | 75 |
    76 | @yield('content') 77 |
    78 |
    79 | 80 | 81 | -------------------------------------------------------------------------------- /resources/views/welcome.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Laravel 8 | 9 | 10 | 11 | 12 | 13 | 65 | 66 | 67 |
    68 | @if (Route::has('login')) 69 | 80 | @endif 81 | 82 |
    83 |
    84 | Laravel 85 |
    86 | 87 | 95 |
    96 |
    97 | 98 | 99 | -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 17 | return $request->user(); 18 | }); 19 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 16 | }); 17 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 18 | })->describe('Display an inspiring quote'); 19 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | name('home'); 21 | 22 | Auth::routes(); 23 | 24 | Route::get('/home', 'HomeController@index')->name('home'); 25 | 26 | //Route::get('/{anypath}','HomeController@index')->where('path','.*'); 27 | 28 | Route::group(['middleware' => ['auth']], function () { 29 | //Category 30 | 31 | Route::post('/add-category','CategoryController@add_category'); 32 | Route::get('category','CategoryController@all_category'); 33 | Route::get('category/{id}','CategoryController@delete_category'); 34 | Route::get('editcategory/{id}','CategoryController@edit_category'); 35 | Route::post('update-category/{id}','CategoryController@update_category'); 36 | Route::get('/deletecategory/{id}','CategoryController@selected_category'); 37 | 38 | //Post 39 | Route::get('/post','PostController@all_Post'); 40 | Route::post('/savepost','PostController@save_post'); 41 | Route::get('/delete/{id}','PostController@delete_post'); 42 | Route::get('/post/{id}','PostController@edit_post'); 43 | Route::post('/update/{id}','PostController@update_post'); 44 | }); 45 | 46 | 47 | 48 | Route::get('/blogpost','BlogController@get_all_blog_post'); 49 | Route::get('/singlepost/{id}','BlogController@getpost_by_id'); 50 | Route::get('/categories','BlogController@get_all_category'); 51 | Route::get('/categorypost/{id}','BlogController@get_all_post_by_cat_id'); 52 | Route::get('/search','BlogController@search_post'); 53 | Route::get('/latestpost','BlogController@latest_post'); 54 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /server.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | $uri = urldecode( 11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) 12 | ); 13 | 14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the 15 | // built-in PHP web server. This provides a convenient way to test a Laravel 16 | // application without having installed a "real" web server software here. 17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { 18 | return false; 19 | } 20 | 21 | require_once __DIR__.'/public/index.php'; 22 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | config.php 2 | routes.php 3 | schedule-* 4 | compiled.php 5 | services.json 6 | events.scanned.php 7 | routes.scanned.php 8 | down 9 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | const mix = require('laravel-mix'); 2 | 3 | /* 4 | |-------------------------------------------------------------------------- 5 | | Mix Asset Management 6 | |-------------------------------------------------------------------------- 7 | | 8 | | Mix provides a clean, fluent API for defining some Webpack build steps 9 | | for your Laravel application. By default, we are compiling the Sass 10 | | file for the application as well as bundling up all the JS files. 11 | | 12 | */ 13 | 14 | mix.js('resources/js/app.js', 'public/js') 15 | .sass('resources/sass/app.scss', 'public/css'); 16 | 17 | --------------------------------------------------------------------------------