public function run()
 {
     $faker = Faker::create();
     foreach (range(1, 10) as $index) {
         Social::create([]);
     }
 }
 /**
  * Store a newly created social in storage.
  *
  * @return Response
  */
 public function store()
 {
     $validator = Validator::make($data = Input::all(), Social::$rules);
     if ($validator->fails()) {
         return Redirect::back()->withErrors($validator)->withInput();
     }
     Social::create($data);
     return Redirect::route('socials.index');
 }
 /**
  * Run the migrations.
  *
  * @return void
  */
 public function up()
 {
     Schema::create('socials', function (Blueprint $table) {
         $table->increments('id');
         $table->string('name');
         $table->text('link');
         $table->string('css');
         $table->boolean('online')->default(0);
         $table->timestamps();
     });
     Social::create(['name' => 'facebook', 'link' => 'http://www.facebook.com', 'css' => 'fa fa-facebook', 'online' => 1]);
     Social::create(['name' => 'twitter', 'link' => 'http://www.twitter.com', 'css' => 'fa fa-twitter', 'online' => 1]);
 }