Package Data | |
---|---|
Maintainer Username: | mreschke |
Maintainer Contact: | mail@mreschke.com (Matthew Reschke) |
Package Create Date: | 2015-02-04 |
Package Last Update: | 2022-11-30 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-13 03:00:12 |
Package Statistics | |
---|---|
Total Downloads: | 1,886 |
Monthly Downloads: | 25 |
Daily Downloads: | 0 |
Total Stars: | 4 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
mrcore/wiki
is a module for the mRcore Framework
This module provides wiki and CMS dynamic app loading functionality.
Assuming you already have Laravel and mRcore Framework installed along with mRcore Auth Module
composer require mrcore/wiki:5.8.*
composer require mrcore/bootswatch-theme:5.8.*
Edit your config/modules.php
file and ensure 'Mrcore\Wiki' => [],
is set in your modules
array
'modules' => [
#...
'Mrcore\Wiki' => []
#...
]
And ensure Mrcore\Wiki
is set in all 3 assets, views and routes
arrays under the "Loading Order / Override Management" section.
Notice Mrcore\Wiki
is defined first in the routes
array. Follow the order of each array listed
#...
'assets' => [
'%app%',
'Mrcore\BootswatchTheme',
'Mrcore\Auth',
'Mrcore\Wiki',
],
'views' => [
'%app%',
'Mrcore\Auth',
'Mrcore\Wiki',
'Mrcore\BootswatchTheme',
],
'routes' => [
'Mrcore\Wiki',
'%app%',
'Mrcore\Auth',
'Mrcore\Foundation',
],
#...
Edit your config/auth.php
file and set guards web driver to mrcore
'guards' => [
'web' => [
'driver' => 'mrcore',
'provider' => 'users',
],
'api' => [
'driver' => 'token',
'provider' => 'users',
],
],
And set profiders users model to Mrcore\Auth\Models\User::class
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => Mrcore\Auth\Models\User::class,
],
],
Run auth and wiki migrations and seeders
./artisan mrcore:auth:app db:migrate
./artisan mrcore:wiki:app db:migrate
./artisan mrcore:auth:app db:seed
./artisan mrcore:wiki:app db:seed
Visit your laravel install (if php artisan server at http://localhost:8000) to see the new wiki
Default user/pass is admin / password
mRcore is a module/package system for Laravel allowing you to build all your applications as reusable modules. Modules resemble the Laravel folder structure and can be plugged into a single Laravel instance. mRcore solves module loading dependency order and in-place live asset handling. Modules can be full web UIs, REST APIs and/or full Console command line apps. A well built module is not only your UI and API, but a shared PHP library, a native API or repository which can be reused as dependencies in other modules.
We firmly believe that all code should be built as modules and not in Laravel's directory structure itself. Laravel simply becomes the "package server". A single Laravel instance can host any number of modules.
See https://github.com/mrcore5/framework for details and installation instructions.
Thank you for considering contributing to the mRcore framework! Fork and pull!
mRcore is open source software licensed under the MIT license
mrcore5-installer
symfony console command to install fresh laravel + foundation. Options for --wiki install or --blog or whatever.mreschke/repository
for auth, foundation and wiki. Split tables between thembadges
comments
formats (wiki, php, phpw, html, text, markdown, htmlw)
frameworks (custom, workbench)
hashtags
modes (default, simple, raw, source)
post_badges
post_indexes
post_locks
post_permissions
post_reads
post_tags
posts
revisions
router
tags
types (doc, page, app)
$wiki = App::make('Mrcore\Wiki');
permissions (update with per type, like wiki, or user, or blog...)
roles
user_permissions
user_roles
users
$auth = App::make('Mrcore\Auth'); $user = $auth->user->find(3); $user->roles; $user->permissions;