22 lines
333 B
PHP
22 lines
333 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: Marco Glietsch
|
|
* Date: 14.05.2018
|
|
* Time: 16:20
|
|
*/
|
|
|
|
namespace App\Helpers;
|
|
|
|
use Illuminate\Http\Request;
|
|
use App\Models\Post;
|
|
|
|
class BreakingNewsHelper
|
|
{
|
|
static function getNews()
|
|
{
|
|
$news = Post::whereType(__('models.breaking_news'))->isPublished()->get();
|
|
|
|
return $news;
|
|
}
|
|
} |