12345678910111213141516171819202122232425262728 |
- <?php
- namespace App\Repositories;
- use App\Models\PlatformContent;
- use Symfony\Component\HttpKernel\Exception\HttpException;
- /**
- * Created by PhpStorm.
- * User: durong
- * Date: 2019/6/17
- * Time: 下午6:46
- */
- class PlatformContentRepository
- {
- public function __construct(PlatformContent $platformContent)
- {
- $this->platformContent = $platformContent;
- }
- public function index($request)
- {
- $this->platformContent = $this->platformContent
- ->orderBy('id', 'desc')->get();
- return $this->platformContent;
- }
- }
|