Commit 0b3ef359 by Angel MAS

publish views necesary

parent a5d67aba
...@@ -19,15 +19,17 @@ class BlogServiceProvider extends ServiceProvider ...@@ -19,15 +19,17 @@ class BlogServiceProvider extends ServiceProvider
if (is_dir(base_path() . '/resources/views/vendor/onestartup/blog')) { if (is_dir(base_path() . '/resources/views/vendor/onestartup/blog')) {
$this->loadViewsFrom(base_path() . '/resources/views/vendor/onestartup/blog', 'blog'); $this->loadViewsFrom(base_path() . '/resources/views/vendor/onestartup/blog', 'blog-public');
$this->loadViewsFrom(__DIR__.'/views', 'blog');
} else { } else {
$this->loadViewsFrom(__DIR__.'/views', 'blog'); $this->loadViewsFrom(__DIR__.'/views', 'blog');
$this->loadViewsFrom(__DIR__.'/views/post', 'blog-public');
} }
$this->publishes([ $this->publishes([
__DIR__.'/views' => resource_path('views/vendor/onestartup/blog'), __DIR__.'/views/post' => resource_path('views/vendor/onestartup/blog'),
]); ]);
......
...@@ -31,7 +31,7 @@ class BlogController extends Controller ...@@ -31,7 +31,7 @@ class BlogController extends Controller
$otros = Entry::where('status',1)->inRandomOrder()->take(3)->get(); $otros = Entry::where('status',1)->inRandomOrder()->take(3)->get();
$categories = Category::where('active', 1)->get(); $categories = Category::where('active', 1)->get();
return view('blog::post.list') return view('blog-public::list')
->with('categories', $categories) ->with('categories', $categories)
->with('otros', $otros) ->with('otros', $otros)
->with('posts', $posts); ->with('posts', $posts);
...@@ -62,7 +62,7 @@ class BlogController extends Controller ...@@ -62,7 +62,7 @@ class BlogController extends Controller
return view('blog::post.single') return view('blog-public::single')
->with('post', $post) ->with('post', $post)
->with('categories', $categories) ->with('categories', $categories)
->with('otros', $otros); ->with('otros', $otros);
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<title> <title>
{{$post->title or "Titulo general"}} {{$post->title or "Titulo general"}}
</title> </title>
@include('blog::post.metatags') @include('blog-public::metatags')
</head> </head>
<body> <body>
{{-- Aqui toda la estructura del blog--}} {{-- Aqui toda la estructura del blog--}}
......
@extends('blog::post.layout') @extends('blog-public::layout')
@section('content') @section('content')
......
@extends('blog::post.layout') @extends('blog-public::layout')
@section('content') @section('content')
<h1> <h1>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment