/**
  * Store a newly created Link in storage.
  *
  * @param CreateLinkRequest $request
  *
  * @return Response
  */
 public function store(CreateLinkRequest $request)
 {
     $input = $request->all();
     $link = Link::create($input);
     Flash::message('Link saved successfully.');
     return redirect(route('admin.links.index'));
 }
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(CreateLinkRequest $request)
 {
     $input = $request->all();
     //        $input = $this->format_url($input);
     $link = Link::create($input);
     Flash::message('Link saved successfully.');
     return $link;
 }
 public function run()
 {
     $faker = Faker::create();
     Link::create(['name' => $faker->name, 'link' => $faker->url]);
     Link::create(['name' => $faker->name, 'link' => $faker->url]);
     Link::create(['name' => $faker->name, 'link' => $faker->url]);
     Link::create(['name' => $faker->name, 'link' => $faker->url]);
     Link::create(['name' => $faker->name, 'link' => $faker->url]);
     Link::create(['name' => $faker->name, 'link' => $faker->url]);
     Link::create(['name' => $faker->name, 'link' => $faker->url]);
     Link::create(['name' => $faker->name, 'link' => $faker->url]);
 }