Example #1
0
 /**
  * Store a newly created resource in storage.
  *
  */
 public function store(Request $request)
 {
     $this->validate($request, ['title' => 'required', 'content' => 'required', 'page_type' => 'required', 'state' => 'required']);
     $data = $request->all();
     $data['publish_at'] = date('Y-m-d H:i:s', strtotime($data['publish_at']));
     unset($data['_token']);
     $page = $this->page->create($data);
     return redirect()->route('pages.show', $page->id);
 }
Example #2
0
 public function store(Request $request)
 {
     $this->validate($request, ['id' => 'required']);
     Page::create($request->all());
     $request->flash();
     return redirect("/admin/pages");
 }
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(PageRequest $request)
 {
     //
     $input = $request->all();
     Page::create($input);
     return redirect('paginas');
 }
Example #4
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     //
     \App\Page::create(['user_id' => 1, 'slug' => 'home', 'route' => 'home', 'status' => 1]);
     \App\Page::create(['user_id' => 1, 'slug' => 'about', 'route' => 'about', 'status' => 1]);
     \App\Page::create(['user_id' => 1, 'slug' => 'contact', 'route' => 'contact', 'status' => 1]);
 }
Example #5
0
 public function run()
 {
     DB::table('pages')->delete();
     Page::create(['name' => 'News Items', 'alias' => 'news', 'description' => 'News you can use.', 'created_by' => 1, 'modified_by' => 1]);
     Page::create(['name' => 'Pop Culture', 'alias' => 'popCulture', 'description' => 'Celebrities, and stuff.', 'created_by' => 1, 'modified_by' => 1]);
     Page::create(['name' => 'Food Blog', 'alias' => 'food', 'description' => 'Getting hungry yet?', 'created_by' => 1, 'modified_by' => 1]);
 }
 public function run()
 {
     DB::table('pages')->delete();
     for ($i = 0; $i < 10; $i++) {
         Page::create(['title' => 'Title ' . $i, 'slug' => 'first-page', 'body' => 'Body ' . $i, 'user_id' => 1]);
     }
 }
Example #7
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  Request  $request
  * @return Response
  */
 public function store(Request $request)
 {
     $this->validate($request, ['title' => 'required']);
     $item = Page::create($request->all());
     Flash::success("Запись - {$item->id} сохранена");
     return redirect(route('admin.pages.index'));
 }
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create(Request $request)
 {
     $token = str_random(32);
     $inputs = $request->all();
     $userId = Auth::user()->id;
     $vacancy = Page::where('userId', '=', $userId, 'and', 'status', '=', '1')->get();
     if (count($vacancy)) {
         Page::create(['userId' => $userId, 'title' => $inputs['title'], 'content' => $inputs['content'], 'email' => $inputs['email'], 'status' => 1, 'token' => $token]);
         return redirect('/')->with('message', 'Вакансия создана');
     } else {
         $text = 'Спасибо за размещение, в данный момент вакансия на модерации.';
         Mail::raw($text, function ($message) {
             $userEmail = Auth::user()->email;
             $message->from('*****@*****.**', 'Laravel');
             $message->to($userEmail);
         });
         Page::create(['userId' => $userId, 'title' => $inputs['title'], 'content' => $inputs['content'], 'email' => $inputs['email'], 'status' => 0, 'token' => $token]);
         Mail::send('emails.template', ['token' => $token, 'title' => $inputs['title'], 'content' => $inputs['content']], function ($message) {
             $userEmail = User::where('user_type', '=', 'admin')->first();
             $message->from('*****@*****.**', 'Laravel');
             $message->to($userEmail->email);
         });
         return redirect('/')->with('message', 'Проверьте почту');
     }
 }
Example #9
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::table('pages')->delete();
     for ($i = 0; $i < count($this->items); $i++) {
         $row = array_combine(['title', 'text'], $this->items[$i]);
         Page::create($row);
     }
 }
Example #10
0
 public function storepage()
 {
     if (Page::create(Input::all())) {
         return Redirect::to('admin/page_publish')->withErrors(Null);
     } else {
         return Redirect::back()->withInput()->withErrors('page store fail!');
     }
 }
 /**
  * Store a newly created page in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request)
 {
     $this->validate($request, ["name" => "required", "slug" => "required|unique:page", "enabled" => "required|accepted"]);
     $input = $request->input();
     $input["user_id"] = $request->user()->id;
     Page::create($input);
     return redirect()->action("PanelController@edit", $input["slug"]);
 }
Example #12
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request)
 {
     $this->validate($request, ['title' => 'required', 'content' => 'required']);
     $input = $request->all();
     Page::create($input);
     Session::flash('flash_message', 'Stránka vytvořena.');
     return redirect()->route('pages.index');
 }
Example #13
0
 public function run()
 {
     DB::table('pages')->delete();
     for ($i = 0; $i < 10; $i++) {
         Page::create(['title' => 'Title ' . $i, 'slug' => 'first-page', 'body' => 'Body ' . $i, 'user_id' => 1]);
     }
     DB::table('users')->delete();
     User::create(['name' => '*****@*****.**', 'email' => 'admin@aneng.com ', 'password' => bcrypt('000000')]);
 }
Example #14
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request $request
  * @return Response
  */
 public function store(Request $request)
 {
     //
     $this->validate($request, $this->rules);
     $request['user_id'] = $request->user()->id;
     $input = Input::all();
     Page::create($input);
     return Redirect::route('superadmin.pages.index')->with('message', 'Page created');
 }
 public function edit(Request $request)
 {
     $page_menu_position = [Page::HEADER_MENU => trans('admin_common.Header Menu'), Page::FOOTER_MENU => trans('admin_common.Footer Menu')];
     $id = 0;
     if (isset($request->id)) {
         $id = $request->id;
     }
     $modelData = new \stdClass();
     if ($id > 0) {
         try {
             $modelData = Page::findOrFail($id);
         } catch (ModelNotFoundException $e) {
             session()->flash('message', trans('admin_common.Invalid Page'));
             return redirect(url('admin/page'));
         }
     }
     /**
      * form is submitted check values and save if needed
      */
     if ($request->isMethod('post')) {
         /**
          * validate data
          */
         $rules = ['page_position' => 'required|integer|not_in:0', 'page_slug' => 'required|max:255|unique:page,page_slug', 'page_title' => 'required|max:255', 'page_content' => 'required', 'page_ord' => 'required|integer'];
         if (isset($modelData->page_id)) {
             $rules['page_slug'] = 'required|max:255|unique:page,page_slug,' . $modelData->page_id . ',page_id';
         }
         $validator = Validator::make($request->all(), $rules);
         if ($validator->fails()) {
             $this->throwValidationException($request, $validator);
         }
         /**
          * get data from form
          */
         $data = $request->all();
         if (isset($data['page_active'])) {
             $data['page_active'] = 1;
         } else {
             $data['page_active'] = 0;
         }
         /**
          * save or update
          */
         if (!isset($modelData->page_id)) {
             Page::create($data);
         } else {
             $modelData->update($data);
         }
         /**
          * clear cache, set message, redirect to list
          */
         Cache::flush();
         session()->flash('message', trans('admin_common.Page saved'));
         return redirect(url('admin/page'));
     }
     return view('admin.page.page_edit', ['modelData' => $modelData, 'page_menu_position' => $page_menu_position]);
 }
Example #16
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     if (Page::query()->count() == 0) {
         $pages = $this->pages();
         foreach ($pages as $page) {
             Page::create($page);
         }
     }
 }
Example #17
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $pages = [['slug' => 'about', 'title' => 'About Me', 'lead' => 'Lorem ipsum', 'content' => 'Lorem ipsum lorem ipsumLorem ipsum lorem ipsumLorem ipsum lorem ipsumLorem ipsum lorem ipsum
                         Lorem ipsum lorem ipsumLorem ipsum lorem ipsumLorem ipsum lorem ipsumLorem ipsum lorem ', 'gallery_id' => '1'], ['slug' => 'biography', 'title' => 'Biography', 'lead' => 'Lorem ipsum lorem ipsum ', 'content' => 'Lorem ipsum lorem ipsumLorem ipsum lorem ipsumLorem ipsum lorem ipsumLorem ipsum lorem ipsum
                         Lorem ipsum lorem ipsumLorem ipsum lorem ipsumLorem ipsum lorem ipsumLorem ipsum lorem ', 'gallery_id' => '1'], ['slug' => 'contact', 'title' => 'Contacts', 'lead' => 'Lorem ipsum lorem ipsum ', 'content' => 'Lorem ipsum lorem ipsumLorem ipsum lorem ipsumLorem ipsum lorem ipsumLorem ipsum lorem ipsum
                         Lorem ipsum lorem ipsumLorem ipsum lorem ipsumLorem ipsum lorem ipsumLorem ipsum lorem ', 'gallery_id' => '1']];
     foreach ($pages as $_page) {
         $page = \App\Page::create($_page);
     }
 }
 private function createPage()
 {
     Page::create(["id_social" => "100048249004", "name" => "Câu lạc bộ những người thích đánh rắm"]);
     Page::create(["id_social" => "100100686804995", "name" => "Ngắm Gái Là Một Sở Thích :X"]);
     Page::create(["id_social" => "100100876814281", "name" => "Điện thoại HongKong"]);
     Page::create(["id_social" => "100100876814752", "name" => "Bảo mẫu"]);
     Page::create(["id_social" => "100101163418605", "name" => "*Let's go*"]);
     //        Page::create(["id_social" => "100102266708743", "name" => "Ngoai ngu"]);
     //        Page::create(["id_social" => "100102513452194", "name" => "Nàng Chuột"]);
     //        Page::create(["id_social" => "100102773384393", "name" => "Vietnam Panpages"]);
     //        Page::create(["id_social" => "100103066701236", "name" => "Những người hay ngáp"]);
     //        Page::create(["id_social" => "100103423403375", "name" => "Hội những nhóc thíc sửa thông tin trên wiki"]);
     //        Page::create(["id_social" => "100103626794811", "name" => "Sim Mobifone - Mọi Lúc Mọi Nơi"]);
     //        Page::create(["id_social" => "100103710082097", "name" => "Le bao Trinh"]);
     //        Page::create(["id_social" => "100104936751324", "name" => "Hội những người ghét cay ghét đắng hối lộ"]);
     //        Page::create(["id_social" => "100104993409494", "name" => "Hội những người thích nhắn tin"]);
     //        Page::create(["id_social" => "100105310073178", "name" => "Sinh tố Võ Văn Tần"]);
     //        Page::create(["id_social" => "100105470135358", "name" => "Hiệp hội NLP Việt Nam"]);
     //        Page::create(["id_social" => "100105536806946", "name" => "Buổi chiều và những mảnh vỡ"]);
     //        Page::create(["id_social" => "100106640073991", "name" => "Hội những người phát cuồng vì muối, rau và TCFC"]);
     //        Page::create(["id_social" => "100106903389042", "name" => "Chuyên Viên Chém Gió"]);
     //        Page::create(["id_social" => "100106923473503", "name" => "Dress for lady"]);
     //        Page::create(["id_social" => "100107040111248", "name" => "Hẹn gặp a vào một ngày khác =\">"]);
     //        Page::create(["id_social" => "100107846811768", "name" => "Hoài Ann. Quỳnh Anhh. Mẫn Tiênn."]);
     //        Page::create(["id_social" => "100108300106850", "name" => "Hội những người thích hát Kraoke"]);
     //        Page::create(["id_social" => "100109153474704", "name" => "Công Ty Cổ Phần Trung Tâm Công Nghệ Phần Mềm TSP"]);
     //        Page::create(["id_social" => "100110870138975", "name" => "BÁT Tràng -Con đường gốm sứ"]);
     //        Page::create(["id_social" => "100111186804341", "name" => "Andoford"]);
     //        Page::create(["id_social" => "100112733426186", "name" => "Tonkin Coffee"]);
     //        Page::create(["id_social" => "100112796782168", "name" => "Đặc Sản Chợ Hàn"]);
     //        Page::create(["id_social" => "100112906774454", "name" => "TrangHanchi"]);
     //        Page::create(["id_social" => "100112956803212", "name" => "HOA MAT TROI"]);
     //        Page::create(["id_social" => "100113003481219", "name" => "Quả Táo Độc"]);
     //        Page::create(["id_social" => "100113256804065", "name" => "Salon Tóc Xinh Thanh Hằng"]);
     //        Page::create(["id_social" => "100113626751600", "name" => "THPT Lý Nhân Tông"]);
     //        Page::create(["id_social" => "100114456766312", "name" => "Kỉ Niệm"]);
     //        Page::create(["id_social" => "100115356786157", "name" => "Công ty CPXD Quang Hưng Phát"]);
     //        Page::create(["id_social" => "100115523470799", "name" => "IpCase"]);
     //        Page::create(["id_social" => "100116446770967", "name" => "GIÓ"]);
     //        Page::create(["id_social" => "100117096764450", "name" => "Hội Những người Thích Đủ Thứ Nhưng không bao giờ có tiền mua"]);
     //        Page::create(["id_social" => "100118743468770", "name" => "Thời trang_Giới trẻ"]);
     //        Page::create(["id_social" => "100120780113641", "name" => "Kỉ Băng Hà"]);
     //        Page::create(["id_social" => "100121036798362", "name" => "THPT Tĩnh Gia II"]);
     //        Page::create(["id_social" => "100121383471681", "name" => "Anh - Tùng Sommelier club"]);
     //        Page::create(["id_social" => "100122150134846", "name" => "MV HD"]);
     //        Page::create(["id_social" => "100122493476439", "name" => "Ngọt Ngào s2 甜心"]);
     //        Page::create(["id_social" => "100124306731163", "name" => "Hội những người thích ăn ngô trừ bữa :xxxxxxxxxxxxxxxxxx"]);
     //        Page::create(["id_social" => "100124646739919", "name" => "Hanoi Tower"]);
     //        Page::create(["id_social" => "100125416804371", "name" => "Phát Khùng với bọn tín đồ HKT"]);
     //        Page::create(["id_social" => "100126540104207", "name" => "Hội những người phát cuồng vì Nguyen Steven"]);
     //        Page::create(["id_social" => "100128483427232", "name" => "HỘI ĂN CHƠI KHÔNG SỢ CON RƠI"]);
     //        Page::create(["id_social" => "100129916733686", "name" => "Toán 1 (2000 - 2003)  Lương Văn Chánh - Phú Yên"]);
 }
Example #19
0
 public function store(CreateNewPageRequest $request)
 {
     $inputs = new Page();
     $file = $request->file('image');
     $destinationPath = 'images';
     $filename = $file->getClientOriginalName();
     $file->move($destinationPath, $filename);
     $image = $destinationPath . '/' . $filename;
     $inputs->create(['parent_id' => $request->input('parent_id'), 'title' => $request->input('title'), 'content' => $request->input('content'), 'image' => $image, 'url' => $request->input('url')]);
     Session::flash('new_page', 'page has been created successfuly');
     return redirect('panel/pages');
 }
Example #20
0
 public function store(Requests\Pages\CreatePageRequest $request, StoreFile $storeFile, \App\Page $page)
 {
     if ($request->hasFile('image')) {
         $image_path = $storeFile->move($request->file('image'), 'images/pages/', 16);
         $modified_request = array_merge($request->all(), ['image' => $image_path]);
     } else {
         $modified_request = $request->except('image');
     }
     $page->create($modified_request);
     //Redirect
     return redirect()->action('Panel\\PagesController@index');
 }
Example #21
0
 public function run()
 {
     // Get the categories subtree of the first root category
     $categories = Category::roots()->first()->getDescendantsAndSelf();
     // Pretend first ser has logged in
     auth()->loginUsingId($i = 1);
     // Add a page for each category of the subtree
     foreach ($categories as $category) {
         Page::create(['name' => "Page {$i}", 'source' => "Content of page {$i}", 'category_id' => $category->id]);
         $i++;
     }
 }
 /**
  * Store a newly created resource in storage.
  * @param PageRequest $request
  * @return Response
  */
 public function store(PageRequest $request)
 {
     // Create
     $page = Page::create($request->only('title', 'slug', 'content', 'published', 'user_id'));
     // Redirect
     if ($page->save()) {
         Flash::success('Page Created', "The page '" . $request->get('title') . "' was successfully created.");
         return redirect(route('page.show', $request->get('slug')));
     } else {
         Flash::error('Error', "Something went wrong while trying to update the page '" . $request->get('title') . "'.");
         return redirect()->back();
     }
 }
Example #23
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $faker = Faker::create();
     /**
      * Create a default home page.
      *
      * @return void
      */
     Page::create(['user_id' => '1', 'title' => 'Home', 'url' => 'homepage', 'heading' => $faker->sentence(3), 'content' => $faker->paragraph(4), 'metatitle' => '', 'metakeywords' => '', 'metadesc' => '', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), 'published_at' => Carbon::now()]);
     foreach (range(1, 29) as $index) {
         Page::create(['user_id' => '1', 'title' => $faker->sentence(4), 'url' => $faker->slug(3), 'heading' => $faker->sentence(3), 'content' => $faker->paragraphs(8, true), 'metatitle' => '', 'metakeywords' => '', 'metadesc' => '', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), 'published_at' => Carbon::now()]);
     }
 }
Example #24
0
 public function insert($chapter_id, $data)
 {
     // Setting the chapter id
     $data['chapter_id'] = $chapter_id;
     // Validating data
     $validator = Validator::make($data, Page::createrules());
     // If there are no errors in data
     if (!$validator->fails()) {
         // Create Page
         $page = Page::create($data);
         // Passing data to response service
         return $this->responseService->returnMessage($page, 'Page was not Inserted.');
     } else {
         // Data has errors
         // Passing errors to response service
         return $this->responseService->errorMessage($validator->errors()->all());
     }
 }
Example #25
0
 public function run()
 {
     $faker = Faker\Factory::create();
     for ($i = 0; $i < 20; $i++) {
         \App\Page::create(['title' => $faker->sentence(5), 'text' => $faker->paragraph(5)]);
     }
     $pages = \App\Page::all();
     for ($i = 0; $i < 5; $i++) {
         $page1 = $pages->random();
         $page2 = $pages->random();
         if ($page1 == $page2) {
             continue;
         }
         try {
             $page1->makeChildOf($page2);
         } catch (\Exception $e) {
         }
     }
 }
Example #26
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Requests\EditArticleRequest $request)
 {
     $img = Image::make($request->images);
     $mime = $img->mime();
     //edited due to updated to 2.x
     if ($mime == 'image/jpeg') {
         $extension = '.jpg';
     } elseif ($mime == 'image/png') {
         $extension = '.png';
     } elseif ($mime == 'image/gif') {
         $extension = '.gif';
     } else {
         $extension = '';
     }
     $file = str_replace(' ', '-', $request->title . $extension);
     $img->save(public_path('images/page/' . $file));
     $page = new Page();
     $page = Page::create($request->except('images'));
     $page->images = $file;
     $page->save();
     return redirect(route('pages.index'));
 }
    /**
     * Run the database seeds.
     * @return void
     */
    public function run()
    {
        // su2bc account
        $user = \App\User::where('username', 'su2bc')->first();
        // Home page
        Page::create(['title' => 'Home', 'slug' => 'home', 'content' => <<<EOF
<p style="text-align: center;"><img title="BUSMS''s performance of Grease, 2015" src="/images/grease2015.jpg" alt="" /></p>
<p>Backstage Technical Services is a society formed of students at the University of Bath, who provide technical expertise to other Students' Union Clubs and Societies and event organisers in Sound, Lighting and Stage Management.</p>
<p>We offer support at a wide range of events including the Students' Union's Summer Ball and Freshers' Week, theatre performances from student and external performers, band and club nights in The Tub and many more.</p>
<p>We work both on- and off-campus providing lighting, sound, set design, pyrotechnic, stage management and event management expertise.</p>
<p>Whether you're interested in booking us to support your event, or are a student at the University of Bath interested in joining us, please explore the site and do not hesitate to <a href="/contact/enquiries">contact us</a> if you have any questions.</p>
EOF
, 'published' => true, 'user_id' => $user->id]);
        // About
        Page::create(['title' => 'About Us', 'slug' => 'about', 'content' => <<<EOF
<h2>What are we about?</h2>
<p>Backstage Technical Services is a group of overworked, under-fed and (if it's possible to say this) under-slept students who provide technical expertise to other Students' Union Clubs and Societies and event organisers in Sound, Lighting and Stage Management.</p>
<p>The fact that we exist solely to assist other societies and members of the Union and University to put on events makes Backstage a unique group within the Students' Union, although we operate according to society rules and are just as much a club/society as any other.</p>
<h2>What types of event do we provide services for?</h2>
<p>All of the big events (and most of the smaller events) are crewed by members of Backstage - all of the bands that appear in the Tub, the experience that is Freshers' Week, The Summer Ball, plays by Bath University Student Theatre (BUST), musicals by Bath University Student Musical Society (BUSMS) and many, many more.</p>
<p>We work both on- and off-campus providing lighting, sound, set design, pyrotechnic, stage management and event management expertise.</p>
<h2>Training</h2>
<p>Backstage run a training course which provides continuous training from basic to advanced level on a wide range of subjects. Our training is open (and completely free) to all BTS members. Sessions this year have included stage management, sound engineering, lighting design and pyrotechnics.</p>
<h2>Booking</h2>
<p>You can submit a booking for Backstage using the <a href="/contact/book">online booking form</a>.</p>
EOF
, 'published' => true, 'user_id' => $user->id]);
        // Links
        Page::create(['title' => 'Links', 'slug' => 'links', 'content' => <<<EOF
<p>This page contains links to many other web resources, divided by category. Please note that these sites are not associated with BTS unless otherwise stated. If you would like a link to be added then please <a href="/contact/enquiries">contact us</a>.</p>
<h3>Lighting Manufacturers</h3>
<ul>
<li><a href="http://www.strandlight.com/" target="_blank">Strand Lighting</a></li>
<li><a href="http://www.etcconnect.com/" target="_blank">ETC</a></li>
<li><a href="http://www.zero88.co.uk/" target="_blank">Zero88</a></li>
<li><a href="http://www.avolites.org.uk/" target="_blank">Avolites</a></li>
<li><a href="http://www.martin.com/" target="_blank">Martin Professional</a></li>
<li><a href="http://www.highend.com/" target="_blank">Highend Systems</a></li>
<li><a href="http://www.pulsarlight.com/" target="_blank">Pulsar Lighting</a></li>
<li><a href="http://www.robe.cz/" target="_blank">Robe Show Lighting</a></li>
<li><a href="http://www.futurelight.co.uk/" target="_blank">Futurelight</a></li>
</ul>
<h3>Sound Manufacturers</h3>
<ul>
<li><a href="http://www.soundcraft.com/" target="_blank">Soundcraft</a></li>
<li><a href="http://www.allen-heath.com/" target="_blank">Alien &amp; Heath</a> (formely AHB)</li>
<li><a href="http://www.mc2-audio.co.uk/" target="_blank">MC2 Amplifiers</a></li>
<li><a href="http://www.behringer.com/" target="_blank">Behringer</a></li>
<li><a href="http://www.global.yamaha.com/products/pa/index.html" target="_blank">Yamaha</a></li>
<li><a href="http://www.audient.co.uk/" target="_blank">Audient</a></li>
</ul>
<h3>Discussion Boards and Forums</h3>
<ul>
<li><a href="http://www.blue-room.org.uk/" target="_blank">The Blue Room</a> - A UK based privately-run forum</li>
<li><a href="http://www.lightnetwork.com/" target="_blank">The Light Network</a> - A largely US forum with a large manufacturer presence</li>
</ul>
<h3>Professional Bodies</h3>
<ul>
<li><a href="http://www.abtt.org.uk/" target="_blank">ABTT</a> - The Association of British Theatre Technicians</li>
<li><a href="http://www.plasa.org/" target="_blank">PLASA</a> - The Professional Lighting and Sound Association</li>
<li><a href="http://www.ald.org.uk/" target="_blank">ALD</a> - The Association of Lighting Designers (a UK body)</li>
<li><a href="http://www.psa.org.uk/" target="_blank">PSA</a> - The Production Services Association</li>
</ul>
<h3>Lighting Suppliers</h3>
<ul>
<li><a href="http://www.enlightenedlighting.co.uk/" target="_blank">Enlightened Lighting</a> - A Bath-based lighting hire company</li>
<li><a href="http://www.stagedepot.co.uk/?q=rb/29/31/33" target="_blank">Stage Depot</a> - A Bath-based sales company</li>
</ul>
<h3>Sound Equipment Suppliers</h3>
<ul>
<li><a href="http://www.apraudio.com/" target="_blank">APR Audio</a></li>
<li><a href="http://www.audioforum.co.uk/" target="_blank">Audio Forum</a></li>
</ul>
<h3>Other Useful Links</h3>
<ul>
<li><a href="http://www.nsdf.org.uk/" target="_blank">NSDF</a> - The National Student Drama Festival</li>
<li><a href="http://www.nlfireworks.com/" target="_blank">Northern Lights</a> - Norther Lights Fireworks Company</li>
<li><a href="http://www.modelbox.co.uk/" target="_blank">Modelbox</a> - CAD libraries and models of performance spaces</li>
</ul>
EOF
, 'published' => true, 'user_id' => $user->id]);
        // FAQ
        Page::create(['title' => 'Frequently Asked Questions', 'slug' => 'faq', 'content' => <<<EOF
<h3>How can I book Backstage?</h3>
<p>Only via the web. It doesn't matter if you've spoken to every person in the society; we only accept bookings via our web booking system. Booking BTS as early as possible gives us more opportunity to ensure that the correct equipment, volunteers and planning is available. This generally means that we are booked around a month in advance (less than two weeks notice may result in a financial surcharge).</p>
<h3>Do BTS members get paid?</h3>
<p>No. All our members are volunteers, doing full-time degrees here at the university. They sometimes work over 15 hours/day for an event, unpaid. To give an indication of cost, an experienced technician from an external company would cost over &pound;100/day.</p>
<h3>Why can't you do this/that event for free?</h3>
<p>Because we need to pay for insurance, repairs, replacements, transport, photocopying costs, faxes, telephones, tape, bulbs, batteries, smoke fluid etc etc. Every year these costs add upto about &pound;10,000 (not including hires) and we therefore need to issue a charge to break even at the end of each year.</p>
<p>Whilst BTS do receive a budget from the union, it can't cover all our costs, especially for the upkeep of equipment that may be used over one hundred times a year.</p>
<h3>Backstage is very expensive! I can get it cheaper elsewhere</h3>
<p>To hire the equipment externally it would normally cost well over &pound;250 per event plus personnel costs.</p>
<p>People hiring are only charged fees that relate to hire of equipment, insurance and upkeep. All of the supervision is given free through volunteers' time. For example, a full band night in a venue would cost a society around &pound;350: the current Backstage charge is less than half of that (assuming all kit required is available internally).</p>
<p>You are quite welcome to use an external company; we would recommend <a href="http://www.enlightenedlighting.co.uk/" target="_blank">Enlightened Lighting</a> in Bath, and <a href="http://www.audioforum.co.uk/" target="_blank">Audio Forum</a> in Bristol.</p>
<h3>The equipment is BUSU property, I'm a BUSU member, can I borrow it?</h3>
<p>The majority of our equipment requires experience (and usually training) before it can be used and therefore it is rare for Backstage to run dry hires (providing equipment without personnel). For insurance and safety reasons, BTS doesn't lend out equipment to private individuals. Societies have borrowed some of our equipment in the past but each request is considered on an individual basis.</p>
<h3>I want to join Backstage!</h3>
<p>Great idea - we're open to all members of Bath University Students' Union. Our weekly meetings happen on Wednesdays at 13:15 and membership only costs &pound;4. For further details, please contact our Secretary at <a href="mailto:sec@bts-crew.com">sec@bts-crew.com</a>.</p>
EOF
, 'published' => true, 'user_id' => $user->id]);
    }
 /**
  * Store a newly created page in storage
  *
  * @param PageRequest $request
  * @return Response
  */
 public function store(PageRequest $request)
 {
     Page::create($request->all()) == true ? Flash::success(trans('admin.create.success')) : Flash::error(trans('admin.create.fail'));
     return redirect(route('admin.page.index'));
 }
Example #29
0
 public function store(PageRequest $request)
 {
     Page::create($request->except(['_token']));
     return redirect('dash/page')->with('message', 'Page was create success.');
 }
 /**
  * Create a new page
  *
  * @param Request $request
  * @return \Illuminate\Http\RedirectResponse
  */
 public function saveNewPage(Request $request)
 {
     $page = Page::create($request->all());
     $page->update(["content" => $request->input('editorValue')]);
     return redirect('manage/pages')->with(['status' => 'success', 'message' => '创建成功']);
 }