コード例 #1
0
 public function run()
 {
     Cinemas::create(['name' => 'Ritz Randwick', 'address' => '45 St Pauls Street, Randwick NSW 2031', 'geo' => json_encode(array("lat" => "", "lang" => ""))]);
     Cinemas::create(['name' => 'Dendy Newtown', 'address' => '261-263 King Street, Newtown NSW 2042', 'geo' => json_encode(array("lat" => "", "lang" => ""))]);
     Cinemas::create(['name' => 'Dendy Opera Quay', 'address' => 'Shop9, 2 East Circular Quay, Sydney NSW 2000', 'geo' => json_encode(array("lat" => "", "lang" => ""))]);
     Cinemas::create(['name' => 'Palace Norton Street', 'address' => '99 Norton Street, Leichhardt NSW 2040', 'geo' => json_encode(array("lat" => "", "lang" => ""))]);
     Cinemas::create(['name' => 'Palace Verona', 'address' => '17 Oxford Street, Paddington', 'geo' => json_encode(array("lat" => "", "lang" => ""))]);
 }
コード例 #2
0
ファイル: CinemasController.php プロジェクト: nmetaute/cinema
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(Requests\CreateCinemasRequest $request)
 {
     $cinema = Cinemas::create($request->all());
     return redirect()->route('cinemas.index');
 }