2017 © Pedro Peláez
 

library cms

The InnoSoft's CMS

image

innosoft/cms

The InnoSoft's CMS

  • Friday, March 10, 2017
  • by innosoft
  • Repository
  • 2 Watchers
  • 0 Stars
  • 341 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 8 % Grown

The README.md

InnoSoft CMS

Installation

Require this package in your composer.json and update composer. This will download the package and CMS of InnoSoft., (*1)

"innosoft/cms": "dev-master"

Now, let's make our package "visible" to main Laravel structure, and assign alias to it, we do that by adding this line to main composer.json section called "psr-4":, (*2)

"autoload": {
      "classmap": [
          "database"
      ],
      "psr-4": {
          "App\\": "app/",
          "InnoSoft\\CMS\\": "vendor/innosoft/cms/src"
      }
},
````
And then we run this command from main folder:

composer dump-autoload, (*3)

Then add the following lines to the `config/app.php`:

'providers' => [ // ..., (*4)

/*
 * InnoSoft Application Providers
 */
InnoSoft\CMS\CMSServiceProvider::class,

// ...

],, (*5)

And then, to perform actual copying, user should **publish** our views, with **Artisan** command:

php artisan vendor:publish, (*6)

Adding `helpers.php` to main `composer.json` section called **"files"**:

"autoload": { "classmap": [ "database" ], "psr-4": { "App\": "app/", "InnoSoft\CMS\": "vendor/innosoft/cms/src" }, "files": [ "helpers.php" ] }, ```` And run this command from main folder:, (*7)

composer dump-autoload

Then add the following lines to the routes.php:, (*8)

Route::group(['middleware' => ['web']], function () {
    Route::group([ 'prefix' => 'admin' ], function(){
        Route::any('{paths?}', "\InnoSoft\CMS\CMSController@route")->where('paths', '([A-Za-z0-9\-\/]+)');
    });

    Route::get('/', function () {
        echo 'Frontend template not found - <a href="admin">Backend</a>';
    });
});

Finally, install database for cms with vendor\innosoft\cms\src\db\install.sql., (*9)

Configuration

(To be continued), (*10)

The Versions

10/03 2017

dev-master

9999999-dev

The InnoSoft's CMS

  Sources   Download

MIT

by Avatar innosoft

16/09 2016

v1.1

1.1.0.0

The InnoSoft's CMS

  Sources   Download

MIT

by Avatar innosoft

03/08 2016

v1.0

1.0.0.0

The InnoSoft's CMS

  Sources   Download

MIT

by Avatar innosoft