Exemplo n.º 1
0
 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()]);
 }
Exemplo n.º 2
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  Request  $request
  * @return Response
  */
 public function store(Request $request)
 {
     Version::create($request->all());
 }