Download the PHP package zachleigh/larafolio without Composer
On this page you can find all versions of the php package zachleigh/larafolio. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package larafolio
This project is still under construction. Come back soon!
Contents
- API
- Developing
API
Larafolio\Models\Project.php
static allVisible($group = true, $order = true)
static allHidden($group = true, $order = true)
static allGrouped($order = true)
static allOrdered()
static hasBlockNamed($blockName)
static hasImageNamed($imageName)
static hasLinkNamed($linkName)
blocks()
links()
images()
hasBlocks()
block($name)
blockText($name, $formatted = true)
getProjectBlock()
getProjectBlockText($formatted = true)
hasImages()
image($name)
imageUrl($name, $size = 'medium')
imageCaption($name)
getProjectImage()
getProjectImageUrl($size = 'small')
hasLinks()
link($name)
linkUrl($name)
Larafolio\Models\Image
thumbnail()
small()
medium()
full()
imageRoute($templateName)
fileName()
Developing
Getting Started
Clone this repo:
Install php dependencies:
Install javascript dependencies:
Or, if you like pain and suffering:
Set up database connections
Currently, database credentials are in two places (yeah, this sucks...):
- /vendor/laravel/laravel/.env.testing
- codeception.yml
Before submitting a pull request, please change codeception.yml back to its original values:
Artisan
There is an artisan file in the Larafolio directory that points to the laravel instance in vendor. This gives you access to all of the artisan commands you would normally use.
Publish the resources from the service provider:
Run migrations
Workflow
Serve the project:
Login and access project
Login logic is contained in the /login route in the underlying Laravel instance. To login and access the project, simply hit the /login route. A user will be logged in and you will be redirected to /manager. Hitting the login route also reruns the migrations and seeds it.
Build resources:
CSS and JS will be built and moved into the vendor laravel instance automatically.
Watch for changes and build automatically:
Create test data
Or simply hit the /login route.
Testing
This project contains both phpunit tests and Codeception tests.
Run all tests:
Run phpunit tests:
Run Codeception tests: