/** * Run the database seeds. * * @return void */ public function run() { Config::create(['key' => 'site_title', 'text' => 'Tiêu đề trang web', 'value' => 'Tiêu đề trang web']); Config::create(['key' => 'meta_description', 'text' => 'Meta Description', 'value' => 'Meta Description']); Config::create(['key' => 'meta_keywords', 'text' => 'Meta Keywords', 'value' => 'Meta Keywords']); Config::create(['key' => 'rows_per_page_article', 'text' => 'Số bài viết hiển thị trên một trang', 'value' => '20']); Config::create(['key' => 'rows_per_page_product', 'text' => 'Số sản phẩm hiển thị trên một trang', 'value' => '20']); Config::create(['key' => 'headquarter_address', 'text' => 'Địa chỉ trụ sở chính', 'value' => 'Địa chỉ trụ sở chính']); Config::create(['key' => 'headquarter_phone_number', 'text' => 'Số điện thoại trụ sở chính', 'value' => '0909-999999']); Config::create(['key' => 'address_sender_mail', 'text' => 'Địa chỉ gửi email', 'value' => '*****@*****.**']); Config::create(['key' => 'display_name_send_mail', 'text' => 'Tên hiển thị trên email liên hệ', 'value' => 'Tên hiển thị trên email liên hệ']); Config::create(['key' => 'address_received_mail', 'text' => 'Địa chỉ nhận email liên hệ', 'value' => '*****@*****.**']); Config::create(['key' => 'yahoo_support', 'text' => 'Hỗ trợ qua Yahoo', 'value' => 'yahooid']); Config::create(['key' => 'skype_support', 'text' => 'Hỗ trợ qua Skype', 'value' => 'skypeid']); Config::create(['key' => 'facebook_page', 'text' => 'Địa chỉ Facebook', 'value' => 'https://fb.com/']); }
/** * Run the database seeds. * * @return void */ public function run() { Config::create(['key' => 'site_title', 'text' => 'Mua bán căn hộ quận 2 | Sang nhượng, cho thuê căn hộ quận 2', 'value' => 'Mua bán căn hộ quận 2 | Sang nhượng, cho thuê căn hộ quận 2']); Config::create(['key' => 'meta_description', 'text' => 'Meta Description', 'value' => 'Meta Description']); Config::create(['key' => 'meta_keywords', 'text' => 'Meta Keywords', 'value' => 'Meta Keywords']); Config::create(['key' => 'rows_per_page_article', 'text' => 'Số bài viết hiển thị trên một trang', 'value' => '20']); Config::create(['key' => 'rows_per_page_product', 'text' => 'Số tin rao hiển thị trên một trang', 'value' => '20']); Config::create(['key' => 'rows_per_page_project', 'text' => 'Số dự án hiển thị trên một trang', 'value' => '9']); Config::create(['key' => 'headquarter_address', 'text' => 'Địa chỉ trụ sở chính', 'value' => 'Địa chỉ trụ sở chính']); Config::create(['key' => 'headquarter_phone_number', 'text' => 'Số điện thoại trụ sở chính', 'value' => '0932622017']); Config::create(['key' => 'address_sender_mail', 'text' => 'Địa chỉ gửi email', 'value' => '*****@*****.**']); Config::create(['key' => 'display_name_send_mail', 'text' => 'Tên hiển thị trên email liên hệ', 'value' => 'Tên hiển thị trên email liên hệ']); Config::create(['key' => 'address_received_mail', 'text' => 'Địa chỉ nhận email liên hệ', 'value' => '*****@*****.**']); Config::create(['key' => 'yahoo_support', 'text' => 'Hỗ trợ qua Yahoo', 'value' => 'yahooid']); Config::create(['key' => 'skype_support', 'text' => 'Hỗ trợ qua Skype', 'value' => 'skypeid']); Config::create(['key' => 'facebook_page', 'text' => 'Địa chỉ Facebook', 'value' => 'https://fb.com/']); Config::create(['key' => 'twitter_page', 'text' => 'Địa chỉ Twitter', 'value' => 'https://twitter.com/']); Config::create(['key' => 'google_page', 'text' => 'Địa chỉ Google', 'value' => 'https://google.com/']); }
/** * Run the database seeds. * * @return void */ public function run() { Config::create(['key' => 'site_title', 'text' => 'Tiêu đề trang web', 'value' => 'Tiêu đề trang web']); Config::create(['key' => 'meta_description', 'text' => 'Meta Description', 'value' => 'Meta Description']); Config::create(['key' => 'meta_keywords', 'text' => 'Meta Keywords', 'value' => 'Meta Keywords']); Config::create(['key' => 'rows_per_page_article', 'text' => 'Số bài viết hiển thị trên một trang', 'value' => '10']); Config::create(['key' => 'rows_per_page_product', 'text' => 'Số sản phẩm hiển thị trên một trang', 'value' => '10']); Config::create(['key' => 'headquarter_address', 'text' => 'Địa chỉ trụ sở chính', 'value' => 'Địa chỉ trụ sở chính']); Config::create(['key' => 'headquarter_phone_number', 'text' => 'Số điện thoại trụ sở chính', 'value' => '0909-999999']); Config::create(['key' => 'address_sender_mail', 'text' => 'Địa chỉ gửi email', 'value' => '*****@*****.**']); Config::create(['key' => 'display_name_send_mail', 'text' => 'Tên hiển thị trên email liên hệ', 'value' => 'Tên hiển thị trên email liên hệ']); Config::create(['key' => 'address_received_mail', 'text' => 'Địa chỉ nhận email liên hệ', 'value' => '*****@*****.**']); Config::create(['key' => 'yahoo_support', 'text' => 'Hỗ trợ qua Yahoo', 'value' => 'yahooid']); Config::create(['key' => 'skype_support', 'text' => 'Hỗ trợ qua Skype', 'value' => 'skypeid']); Config::create(['key' => 'facebook_page', 'text' => 'Địa chỉ Facebook', 'value' => 'https://fb.com/']); Config::create(['key' => 'plus_google', 'text' => 'Google plus', 'value' => 'https://plus.google.com']); Config::create(['key' => 'twitter_page', 'text' => 'Twitter', 'value' => 'https://twitter.com/']); Config::create(['key' => 'linkedin_page', 'text' => 'Linkedin', 'value' => 'https://www.linkedin.com/']); Config::create(['key' => 'theme_color', 'text' => 'Template color', 'value' => 'colour-1']); }
/** * Store a newly created resource in storage. * * @return Response */ public function store(Request $request) { Config::create($request->all()); Session::flash('flash_message', 'Config added!'); return redirect('admin/config'); }
public function run() { DB::table('config')->delete(); Config::create(['title' => 'kurs', 'name' => 'курс доллара', 'value' => '22,10']); Config::create(['title' => 'admin_email', 'name' => 'E-mail администратора', 'value' => '*****@*****.**']); Config::create(['title' => 'site_name', 'name' => 'Название сайта', 'value' => 'onlinevizitki.com.ua']); Config::create(['title' => 'phone_mts', 'name' => 'МТС', 'value' => '+38 050 123 54 55']); Config::create(['title' => 'phone_kyevstar', 'name' => 'КиевСтар', 'value' => '+38 067 515 09 20']); Config::create(['title' => 'vk', 'name' => 'Ссылка на Вконтакте, включая http://', 'value' => 'http://vk.com']); Config::create(['title' => 'fb', 'name' => 'Ссылка на Facebook, включая http://', 'value' => 'http://facebook.com']); Config::create(['title' => 'ok', 'name' => 'Ссылка на Одноклассники, включая http://', 'value' => 'http://ok.ru']); }
/** * Store a newly created resource in storage. * * @param Request $request * @return Response */ public function store(Request $request) { $input = $request->all(); Config::create($input); return Redirect::back(); }