public function create(array $data) { return Version::create(['title' => $data['title'], 'version_code' => $data['version_code'], 'version_name' => $data['version_name'], 'description' => $data['description'], 'app_url' => $data['app_url'], 'user_id' => Auth::id()]); }
/** * Store a newly created resource in storage. * * @param Request $request * @return Response */ public function store(Request $request) { Version::create($request->all()); }