git add .
git commit -m 'your projects'
git push
git clone git@ip:/your_project.git
git 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
@endif
return redirect()->back()->with('error', 'Неверная пара логин пароль');
if(Session::has('error'))
{{ Session::get('error') }}
@endif
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);
}
database
и жить проще будет) и created_at будет и updated_at {
"private": true,
"devDependencies": {
"gulp": "^3.8.8"
},
"dependencies": {
"laravel-elixir": "^3.0.0",
"bootstrap-sass": "^3.0.0"
}
}
elixir(function(mix) {
mix.copy('vendor/foo/bar.css', 'public/css/bar.css');
});
elixir(function(mix) {
mix.copy('vendor/package/views', 'resources/views');
});