October: How to integrate OctoberCMS with my Laravel app?

Created on 13 Jun 2016  路  4Comments  路  Source: octobercms/october

how to integrate october with my laravel app?

Archived Question

Most helpful comment

Off the top of my head, something like this:

  1. Include the composer packages in composer.json
  2. Extend October\Rain bootstrap / foundation classes instead of Laravel (app directory)
  3. Introduce the CMS config file
  4. Run php artisan october:up to migrate the databases

Composer packages:

    "october/rain": "~1.0",
    "october/system": "~1.0",
    "october/backend": "~1.0",
    "october/cms": "~1.0",

Foundation classes:

October\Rain\Foundation\Http\Kernel
October\Rain\Foundation\Console\Kernel
October\Rain\Foundation\Exception\Handler

Please report back with your findings and we can create a tutorial for this.

All 4 comments

Off the top of my head, something like this:

  1. Include the composer packages in composer.json
  2. Extend October\Rain bootstrap / foundation classes instead of Laravel (app directory)
  3. Introduce the CMS config file
  4. Run php artisan october:up to migrate the databases

Composer packages:

    "october/rain": "~1.0",
    "october/system": "~1.0",
    "october/backend": "~1.0",
    "october/cms": "~1.0",

Foundation classes:

October\Rain\Foundation\Http\Kernel
October\Rain\Foundation\Console\Kernel
October\Rain\Foundation\Exception\Handler

Please report back with your findings and we can create a tutorial for this.

I'd love to learn how to do this too. I want to get more familiar with plain laravel but also have the power of octobercms.

@daftspunk Adding these lines in the Composer file did not work for me:

"october/rain": "~1.0",
"october/system": "~1.0",
"october/backend": "~1.0",
"october/cms": "~1.0",

It gives me these errors when running composer install or composer update.

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package october/rain ~1.0 is satisfiable by october/rain[1.0.x-dev] but these conflict with your requirements or minimum-stability.
  Problem 2
    - The requested package october/system ~1.0 is satisfiable by october/system[1.0.x-dev] but these conflict with your requirements or minimum-stability.
  Problem 3
    - The requested package october/backend ~1.0 is satisfiable by october/backend[1.0.x-dev] but these conflict with your requirements or minimum-stability.
  Problem 4
    - The requested package october/cms ~1.0 is satisfiable by october/cms[1.0.x-dev] but these conflict with your requirements or minimum-stability.

This also related to this issue: https://github.com/octobercms/october/issues/2256

@pedzed according to the error message it relates to the composer configuration for minimum stability.

but these conflict with your requirements or minimum-stability

I understand this is to be the root of the problem, let's continue the conversation at #2256.

Was this page helpful?
0 / 5 - 0 ratings