Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
onestartup-blog
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Angel Martin
onestartup-blog
Commits
0b3ef359
Commit
0b3ef359
authored
6 years ago
by
Angel MAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
publish views necesary
parent
a5d67aba
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
7 deletions
+9
-7
BlogServiceProvider.php
src/BlogServiceProvider.php
+4
-2
BlogController.php
src/controllers/BlogController.php
+2
-2
layout.blade.php
src/views/post/layout.blade.php
+1
-1
list.blade.php
src/views/post/list.blade.php
+1
-1
single.blade.php
src/views/post/single.blade.php
+1
-1
No files found.
src/BlogServiceProvider.php
View file @
0b3ef359
...
...
@@ -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'
),
]);
...
...
This diff is collapsed.
Click to expand it.
src/controllers/BlogController.php
View file @
0b3ef359
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
src/views/post/layout.blade.php
View file @
0b3ef359
...
...
@@ -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--}}
...
...
This diff is collapsed.
Click to expand it.
src/views/post/list.blade.php
View file @
0b3ef359
@
extends
(
'blog
::post.
layout'
)
@
extends
(
'blog
-public::
layout'
)
@
section
(
'content'
)
...
...
This diff is collapsed.
Click to expand it.
src/views/post/single.blade.php
View file @
0b3ef359
@
extends
(
'blog
::post.
layout'
)
@
extends
(
'blog
-public::
layout'
)
@
section
(
'content'
)
<
h1
>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment