Skip to content

Commit

Permalink
laravel 5 👍
Browse files Browse the repository at this point in the history
  • Loading branch information
sseffa committed Apr 9, 2015
1 parent 3aa5755 commit 03f6a6a
Show file tree
Hide file tree
Showing 2,001 changed files with 204,882 additions and 21 deletions.
18 changes: 18 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
APP_ENV=local
APP_DEBUG=true
APP_KEY=SomeRandomString

DB_HOST=localhost
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto
*.css linguist-vendored
*.less linguist-vendored
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/vendor
/node_modules
.env

.idea
composer.lock
38 changes: 17 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
sf CMS
Fully CMS
=============

## sf CMS Ver. 2.0.0
### Laravel 5 Content Managment System

### just an example, needs further development!

## Fully CMS Ver. 2.0.0
##### Change log:
* The title has been changed to "Fully CMS"
* More functions
* Better optimization
* Laravel 5

### just an example, needs further development!

<img src="https://raw.github.com/sseffa/sf_cms/master/screenshoots/1.png" width="900" />
<img src="https://raw.github.com/sseffa/fullycms/master/screenshoots/1.png" width="900" />

## Features

* Laravel 4.2
* Bootstrap 3
* Authentication Sentry 2.1
* Laravel 5
* Bootstrap
* Authentication Sentry
* Ckeditor
* Bootstrap Code Prettify
* File Manager
Expand Down Expand Up @@ -46,37 +48,33 @@ sf CMS

## Todo

* Multi language
* User (Cartalyst Sentry)
* Groups,
* Group Permissions,
* User Permissions,
* Login Throttling
* User Suspension
* User Banning
* Multi theme
* Modular Structure
* Plugin Manager

## Installation

Please check the system requirements before installing sf CMS.

1. You may install by cloning from github, or via composer.
* Github: `git clone git@github.com:sseffa/sf_cms.git`
* Composer: `composer create-project sseffa/sf_cms --prefer-dist`
* Github: `git clone git@github.com:sseffa/fullycms.git`
* Composer: `composer create-project sseffa/fullycms --prefer-dist`
2. From a command line open in the folder, run `composer install`.
3. Enter your database details into `app/config/database.php`.
4. Run `php artisan app:install` to setup and seed your database.
5. Default admin, email: admin@admin.com, password: admin
6. Settings `app/config/sfcms.php`. (optional)
6. Settings `app/config/fully.php`. (optional)
* Cache enable / disable
* image folder
* post per page
* ...

## Credits

* <http://almsaeedstudio.com/preview/>
* <http://www.dropzonejs.com/>
* <http://ckeditor.com/>
* <http://www.eyecon.ro/bootstrap-datepicker/>
Expand All @@ -90,11 +88,9 @@ Please check the system requirements before installing sf CMS.

## Screenshots

<img src="https://raw.github.com/sseffa/sf_cms/master/screenshoots/2.png" width="900" />
<img src="https://raw.github.com/sseffa/sf_cms/master/screenshoots/3.png" width="900" />
<img src="https://raw.github.com/sseffa/sf_cms/master/screenshoots/4.png" width="900" />
<img src="https://raw.github.com/sseffa/sf_cms/master/screenshoots/5.png" width="900" />
<img src="https://raw.github.com/sseffa/sf_cms/master/screenshoots/8.png" width="900" />
<img src="https://raw.github.com/sseffa/fullycms/master/screenshoots/2.png" width="900" />
<img src="https://raw.github.com/sseffa/fullycms/master/screenshoots/3.png" width="900" />
<img src="https://raw.github.com/sseffa/fullycms/master/screenshoots/4.png" width="900" />

### Licence

Expand Down
7 changes: 7 additions & 0 deletions app/Commands/Command.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php namespace Fully\Commands;

abstract class Command {

//

}
20 changes: 20 additions & 0 deletions app/Composers/Admin/MenuComposer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php namespace Fully\Composers\Admin;

use Fully\Models\FormPost;

/**
* Class MenuComposer
* @package Fully\Composers\Admin
* @author Sefa Karagöz
*/
class MenuComposer {

/**
* @param $view
*/
public function compose($view) {

$view->with('formPost', FormPost::where('is_answered', 0)->get());
}
}

35 changes: 35 additions & 0 deletions app/Composers/ArticleComposer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php namespace Fully\Composers;

use Article;
use Fully\Repositories\Article\ArticleInterface;

/**
* Class ArticleComposer
* @package Fully\Composers
* @author Sefa Karagöz
*/
class ArticleComposer {

/**
* @var \Fully\Repositories\Article\ArticleInterface
*/
protected $article;

/**
* @param ArticleInterface $article
*/
public function __construct(ArticleInterface $article) {

$this->article = $article;
}

/**
* @param $view
*/
public function compose($view) {

$articles = $this->article->getLastArticle(3);
$view->with('articles', $articles);
}
}

39 changes: 39 additions & 0 deletions app/Composers/MenuComposer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php namespace Fully\Composers;

use Menu;
use Page;
use PhotoGallery;
use FormPost;
use Fully\Repositories\Menu\MenuInterface;

/**
* Class MenuComposer
* @package Fully\Composers
* @author Sefa Karagöz
*/
class MenuComposer {

/**
* @var \Fully\Repositories\Menu\MenuInterface
*/
protected $menu;

/**
* @param MenuInterface $menu
*/
public function __construct(MenuInterface $menu){

$this->menu=$menu;
}

/**
* @param $view
*/
public function compose($view) {

$items = $this->menu->all();
$menus = $this->menu->getFrontMenuHTML($items);
$view->with('menus', $menus);
}
}

35 changes: 35 additions & 0 deletions app/Composers/NewsComposer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php namespace Fully\Composers;

use News;
use Fully\Repositories\News\NewsInterface;

/**
* Class MenuComposer
* @package Fully\Composers
* @author Sefa Karagöz
*/
class NewsComposer {

/**
* @var \Fully\Repositories\News\NewsInterface
*/
protected $news;

/**
* @param ArticleInterface $article
*/
public function __construct(NewsInterface $news) {

$this->news = $news;
}

/**
* @param $view
*/
public function compose($view) {

$news = $this->news->getLastNews(5);
$view->with('news', $news);
}
}

34 changes: 34 additions & 0 deletions app/Composers/SettingComposer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php namespace Fully\Composers;

use Fully\Models\Setting;
use Fully\Repositories\Setting\SettingInterface;

/**
* Class SettingComposer
* @package Fully\Composers
* @author Sefa Karagöz
*/
class SettingComposer {

/**
* @var \Fully\Repositories\Setting\SettingInterface
*/
protected $setting;

/**
* @param SettingInterface $setting
*/
public function __construct(SettingInterface $setting) {

$this->setting = $setting;
}

/**
* @param $view
*/
public function compose($view) {

$settings = $this->setting->getSettings();
$view->with('settings', $settings);
}
}
Loading

0 comments on commit 03f6a6a

Please sign in to comment.