Download the PHP package yish/autopage without Composer
On this page you can find all versions of the php package yish/autopage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yish/autopage
More information about yish/autopage
Files in yish/autopage
Package autopage
Short Description Auto load static page and generate routes for laravel.
License MIT
Informations about the package autopage
This package will help you super faster to create page without set route and auto generate specific route.
Installation
Support auto discovery and you don’t want to do u can don’t discover and register Yish\AutoPage\AutoPageServiceProvider::class
Next, you need to create directory pages
in resources/views
, or you can use:
To publish config auto-page.php
setting the directory and other settings.
Usage
For example, you want to make http://localhost/hello
you need to web.php
and create route and make closure or controller, for now you don’t do this, you can negative to resources/views/pages
and create hello.blade.php
put in your html an code and done it.
Try to visit http://localhost/hello
and will see Hello, world
it’s pretty amazing, right?
Supported 1 slug(required) and 5 options uri, so you can do: resources/views/hello/a/b/c/d/e
, and visit http://localhost/hello/a/b/c/d/e
Optional
Sometimes, you need to add the customization whoops page for situations.
For example, your directory is resources/views/hello
but you need to set whoops for this directory, add whoops.blade.php
on the same directory layer, if you want to customize specific whoops, you can do the same above, otherwise it will aborting 404 by default.
Enjoy it 🎉
All versions of autopage with dependencies
illuminate/support Version 5.*|^6.0|^7.0|^8.0
illuminate/view Version 5.*|^6.0|^7.0|^8.0
illuminate/config Version 5.*|^6.0|^7.0|^8.0
illuminate/routing Version 5.*|^6.0|^7.0|^8.0
illuminate/http Version 5.*|^6.0|^7.0|^8.0