-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement RSS feed generation for posts and update routes; add locali…
…zation support in HTML
- Loading branch information
1 parent
a804c97
commit 42fe5da
Showing
9 changed files
with
367 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<?php | ||
|
||
use App\Models\Post; | ||
|
||
return [ | ||
'feeds' => [ | ||
'main' => [ | ||
/* | ||
* Here you can specify which class and method will return | ||
* the items that should appear in the feed. For example: | ||
* [App\Model::class, 'getAllFeedItems'] | ||
* | ||
* You can also pass an argument to that method. Note that their key must be the name of the parameter: | ||
* [App\Model::class, 'getAllFeedItems', 'parameterName' => 'argument'] | ||
*/ | ||
'items' => '', | ||
|
||
/* | ||
* The feed will be available on this url. | ||
*/ | ||
'url' => '', | ||
|
||
'title' => 'Laravel starter Forum RSS Feed', | ||
'description' => 'The Laravel starter Forum RSS feed', | ||
'language' => 'en-US', | ||
|
||
/* | ||
* The image to display for the feed. For Atom feeds, this is displayed as | ||
* a banner/logo; for RSS and JSON feeds, it's displayed as an icon. | ||
* An empty value omits the image attribute from the feed. | ||
*/ | ||
'image' => '', | ||
|
||
/* | ||
* The format of the feed. Acceptable values are 'rss', 'atom', or 'json'. | ||
*/ | ||
'format' => 'atom', | ||
|
||
/* | ||
* The view that will render the feed. | ||
*/ | ||
'view' => 'feed::atom', | ||
|
||
/* | ||
* The mime type to be used in the <link> tag. Set to an empty string to automatically | ||
* determine the correct value. | ||
*/ | ||
'type' => '', | ||
|
||
/* | ||
* The content type for the feed response. Set to an empty string to automatically | ||
* determine the correct value. | ||
*/ | ||
'contentType' => '', | ||
], | ||
'posts' => [ | ||
'items' => [Post::class, 'getFeedItems'], | ||
|
||
'url' => '', | ||
|
||
'title' => 'Laravel starter Blog RSS Feed', | ||
'description' => 'The Laravel starter Blog RSS feed', | ||
'language' => 'en-US', | ||
|
||
'image' => '', | ||
|
||
'format' => 'atom', | ||
|
||
'view' => 'feed::atom', | ||
|
||
'type' => '', | ||
|
||
'contentType' => '', | ||
], | ||
], | ||
]; |
Oops, something went wrong.