Files
spa-api/app/Http/Controllers/ProjectController.php

21 lines
676 B
PHP
Raw Normal View History

<?php
namespace App\Http\Controllers;
use App\BaseApp\BaseController;
use App\Service\ProjectService;
class ProjectController extends BaseController
{
//
public function __construct()
{
parent::__construct();
$this->service = ProjectService::getInstance();
$this->insertField = [ 'title', 'cover', 'description', 'category_id', 'video_url', 'price', 'front', 'service', 'deploy', 'status'];
$this->updateField = [ 'id', 'title', 'cover', 'description', 'category_id', 'video_url', 'price', 'front', 'service', 'deploy', 'status'];
$this->notRequest = ['features', 'screenshots', 'labels', 'preferential_price'];
}
}