Thursday, February 16, 2017

Sunday, February 12, 2017

Laravel Voyager Nested Resources

Voyager is the Laravel missing admin panel. Voyager version 0.10.13 by default not provide nested resources. So these what i found to achieve that.

Issue 1 - Routing & View

I want to create a bread for the books and the pages.


/admin/books - works by default
/admin/book-pages - works by default
/admin/books/{book_id}/book-pages/create - how?
/admin/books/{book_id}/book-pages/{book_page_id}/edit - how?

Issue 2 - Controller Level dataTypeContent Filter

$dataTypeContent in views/vendor/voyager/{slug}/browse.blade.php
my book-pages resource under books resources.
books/{book}/book-pages
I have no idea how to filter the dataTypeContent by the book.



Monday, February 6, 2017

Google Docs as the online documentation generator




Set section title as header




Show the document outline.


Yeah that's all.


Sticky Session for AdonisJs and Laravel

I thinking about the future of both frameworks. Why i need to think about it? Yeah, for sure i always want to use a long term solutions. So, my products can go far. Even i decided to use CMS also. I still need to know that the CMS should be able to be stateless at any time we need.

Sticky Session for Laravel in AWS = DynamoDB Session Driver
http://www.techigniter.in/blogs/tutorials/dynamodb-session-driver-for-laravel-5/

Sticky Session for AdonisJs in AWS = Redis Session Driver
https://adonisjs.com/docs/3.2/sessions#_drivers

Sticky Session for AdonisJs in AWS = DynamoDB Session Driver (not yet found any article related to this)