Skip to content

Instantly share code, notes, and snippets.

@suwardany
Last active August 29, 2015 14:03
Show Gist options
  • Save suwardany/37f70262eef3a5b900e8 to your computer and use it in GitHub Desktop.
Save suwardany/37f70262eef3a5b900e8 to your computer and use it in GitHub Desktop.
Setup a blog extension with Cartalyst Platform 2 (new Workshop)

Setup a blog extension with Cartalyst Platform 2

Download Platform

git clone https://github.com/cartalyst/platform.git blog

Install Dependencies

Navigate into the downloaded folder and run

composer install

Setup Platform

Platform can be installed either through the browser or terminal,

Browser

Navigate to your vhost, the installer will appear, follow instructions.

Terminal

run php artisan platform:install and follow instructions.

Create a new extension

Open the app in the browser, Sign in, go to Admin

Under Operations choose Workshop

Fill out the fields as follows

Author Name: Cartalyst

Author Email: [email protected]

Vendor: cartalyst

Name: blog

Version: 0.1.0

Description: A Platform 2 Blog Extension

Click on Save

Configure Extension

  • Click on Scaffold

  • Write post in the name field.

  • Check all

  • Click on Next

Migration

  • Check seeder and write the number of records you need for your seeder.

  • Add a field title type string

  • Add a field body type text

  • Click on Create

  • Open up the PostsTableSeeder and uncomment the faker lines if you have faker installed or add your own logic there.

  • Click on install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment