-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2,001 changed files
with
204,882 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* text=auto | ||
*.css linguist-vendored | ||
*.less linguist-vendored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/vendor | ||
/node_modules | ||
.env | ||
|
||
.idea | ||
composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php namespace Fully\Commands; | ||
|
||
abstract class Command { | ||
|
||
// | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
Oops, something went wrong.