git add .
git commit -m 'your projects'
git pushgit clone git@ip:/your_project.gitgit add .
git commit -m 'add laravel';
git push origin master$user = \Auth::attempt(['email' => $request['email'], 'password' => $request['password']], true, true);
if(!$user) {
$validator->errors()->add('email', 'Incorrect username or password.');
return \Redirect::back()
->withErrors($validator)
->withInput();
}@if ($errors->has())
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endifreturn redirect()->back()->with('error', 'Неверная пара логин пароль');if(Session::has('error'))
{{ Session::get('error') }}
@endif copy('http://site.ru/image.jpeg', '/path/to/image.jpeg');$image = file_get_contents("http://site.ru/image.jpeg");
$save = file_put_contents('/path/to/image.jpeg', $image);Image::make('http://site.ru/image.jpeg')->save('/path/to/image.jpeg');public function route(array $params = [], $absolute_url = true) {
$params = array_diff($params, ['', null]);
return route('frontend.articles', array_replace($params, ['prefix' => App::getLocale()]), $absolute_url);
}