Commit 0b3ef359 by Angel MAS

publish views necesary

parent a5d67aba
......@@ -19,15 +19,17 @@ class BlogServiceProvider extends ServiceProvider
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 {
$this->loadViewsFrom(__DIR__.'/views', 'blog');
$this->loadViewsFrom(__DIR__.'/views/post', 'blog-public');
}
$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
$otros = Entry::where('status',1)->inRandomOrder()->take(3)->get();
$categories = Category::where('active', 1)->get();
return view('blog::post.list')
return view('blog-public::list')
->with('categories', $categories)
->with('otros', $otros)
->with('posts', $posts);
......@@ -62,7 +62,7 @@ class BlogController extends Controller
return view('blog::post.single')
return view('blog-public::single')
->with('post', $post)
->with('categories', $categories)
->with('otros', $otros);
......
......@@ -4,7 +4,7 @@
<title>
{{$post->title or "Titulo general"}}
</title>
@include('blog::post.metatags')
@include('blog-public::metatags')
</head>
<body>
{{-- Aqui toda la estructura del blog--}}
......
@extends('blog::post.layout')
@extends('blog-public::layout')
@section('content')
......
@extends('blog::post.layout')
@extends('blog-public::layout')
@section('content')
<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