mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Multi Auth - Multi DB (#2442)
* Multi Auth / Multi DB cleanup * Fixes for Multi-DB * Fixes for Multi auth using Multi DB * Remove register routes from application
This commit is contained in:
parent
19a836b010
commit
4076a00dae
12
.env.example
12
.env.example
@ -28,14 +28,4 @@ MAIL_HOST=smtp.mailtrap.io
|
||||
MAIL_PORT=2525
|
||||
MAIL_USERNAME=null
|
||||
MAIL_PASSWORD=null
|
||||
MAIL_ENCRYPTION=null
|
||||
|
||||
PUSHER_APP_ID=
|
||||
PUSHER_APP_KEY=
|
||||
PUSHER_APP_SECRET=
|
||||
PUSHER_APP_CLUSTER=mt1
|
||||
|
||||
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
|
||||
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
|
||||
|
||||
AUTH_PROVIDER=
|
||||
MAIL_ENCRYPTION=null
|
12
.env.travis
12
.env.travis
@ -1,12 +0,0 @@
|
||||
APP_ENV=development
|
||||
APP_DEBUG=false
|
||||
APP_URL=http://ninja.test
|
||||
APP_KEY=SomeRandomStringSomeRandomString
|
||||
APP_CIPHER=AES-256-CBC
|
||||
APP_LOCALE=en
|
||||
|
||||
MAIL_DRIVER=log
|
||||
TRAVIS=true
|
||||
API_SECRET=password
|
||||
TEST_USERNAME=user@example.com
|
||||
CODECOV_TOKEN="f9d33009-bf48-44e8-8b95-9e554f23e667"
|
47
LICENSE.txt
47
LICENSE.txt
@ -1,47 +0,0 @@
|
||||
Copyright (c) 2018 by Hillel Coren
|
||||
Invoice Ninja * https://www.invoiceninja.com
|
||||
"CREATE. SEND. GET PAID"
|
||||
|
||||
All Rights Reserved
|
||||
ATTRIBUTION ASSURANCE LICENSE (adapted from the original BSD license)
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the conditions below are met.
|
||||
These conditions require a modest attribution to InvoiceNinja.com (the
|
||||
"Author"), who hopes that its promotional value may help justify the
|
||||
thousands of dollars in otherwise billable time invested in writing
|
||||
this and other freely available, open-source software.
|
||||
|
||||
1. Redistributions of source code, in whole or part and with or without
|
||||
modification (the "Code"), must prominently display this GPG-signed
|
||||
text in verifiable form.
|
||||
2. Redistributions of the Code in binary form must be accompanied by
|
||||
this GPG-signed text in any documentation and, each time the resulting
|
||||
executable program or a program dependent thereon is launched, a
|
||||
prominent display (e.g., splash screen or banner text) of the Author's
|
||||
attribution information, which includes:
|
||||
(a) Name ("Hillel Coren"),
|
||||
(b) Professional identification ("Invoice Ninja"), and
|
||||
(c) URL ("https://www.invoiceninja.com").
|
||||
3. Neither the name nor any trademark of the Author may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
4. Users are entirely responsible, to the exclusion of the Author and
|
||||
any other persons, for compliance with (1) regulations set by owners or
|
||||
administrators of employed equipment, (2) licensing terms of any other
|
||||
software, and (3) local regulations regarding use, including those
|
||||
regarding import, export, and use of encryption software.
|
||||
|
||||
THIS FREE SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
EVENT SHALL THE AUTHOR OR ANY CONTRIBUTOR BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
EFFECTS OF UNAUTHORIZED OR MALICIOUS NETWORK ACCESS;
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@ -19,8 +19,7 @@ class Kernel extends ConsoleKernel
|
||||
/**
|
||||
* Define the application's command schedule.
|
||||
*
|
||||
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
||||
*
|
||||
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
||||
* @return void
|
||||
*/
|
||||
protected function schedule(Schedule $schedule)
|
||||
|
@ -17,4 +17,9 @@ if (! defined('APP_NAME')) {
|
||||
|
||||
define('ENV_DEVELOPMENT', 'local');
|
||||
define('ENV_STAGING', 'staging');
|
||||
|
||||
define('TEST_USERNAME', env('TEST_USERNAME', 'user@example.com'));
|
||||
define('TEST_CLIENTNAME', env('TEST_CLIENTNAME', 'client@example.com'));
|
||||
define('TEST_PASSWORD', 'password');
|
||||
|
||||
}
|
@ -4,6 +4,7 @@ namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
use Illuminate\Auth\AuthenticationException;
|
||||
|
||||
class Handler extends ExceptionHandler
|
||||
{
|
||||
@ -29,8 +30,7 @@ class Handler extends ExceptionHandler
|
||||
/**
|
||||
* Report or log an exception.
|
||||
*
|
||||
* @param \Exception $exception
|
||||
*
|
||||
* @param \Exception $exception
|
||||
* @return void
|
||||
*/
|
||||
public function report(Exception $exception)
|
||||
@ -41,13 +41,35 @@ class Handler extends ExceptionHandler
|
||||
/**
|
||||
* Render an exception into an HTTP response.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Exception $exception
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Exception $exception
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function render($request, Exception $exception)
|
||||
{
|
||||
return parent::render($request, $exception);
|
||||
}
|
||||
|
||||
protected function unauthenticated($request, AuthenticationException $exception)
|
||||
{
|
||||
if ($request->expectsJson()) {
|
||||
return response()->json(['error' => 'Unauthenticated.'], 401);
|
||||
}
|
||||
|
||||
$guard = array_get($exception->guards(), 0);
|
||||
|
||||
switch ($guard) {
|
||||
case 'contact':
|
||||
$login = 'contact.login';
|
||||
break;
|
||||
case 'user':
|
||||
$login = 'login';
|
||||
break;
|
||||
default:
|
||||
$login = 'default';
|
||||
break;
|
||||
}
|
||||
|
||||
return redirect()->guest(route($login));
|
||||
}
|
||||
}
|
||||
|
48
app/Http/Controllers/Auth/ContactLoginController.php
Normal file
48
app/Http/Controllers/Auth/ContactLoginController.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Http\Controllers\Controller;
|
||||
use Auth;
|
||||
use Route;
|
||||
|
||||
class ContactLoginController extends Controller
|
||||
{
|
||||
|
||||
protected $redirectTo = '/contact';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('guest:contact', ['except' => ['logout']]);
|
||||
}
|
||||
|
||||
public function showLoginForm()
|
||||
{
|
||||
return view('auth.contact_login');
|
||||
}
|
||||
|
||||
public function login(Request $request)
|
||||
{
|
||||
// Validate the form data
|
||||
$this->validate($request, [
|
||||
'email' => 'required|email',
|
||||
'password' => 'required|min:6'
|
||||
]);
|
||||
|
||||
// Attempt to log the user in
|
||||
if (Auth::guard('contact')->attempt(['email' => $request->email, 'password' => $request->password], $request->remember)) {
|
||||
// if successful, then redirect to their intended location
|
||||
return redirect()->intended(route('contact.dashboard'));
|
||||
}
|
||||
|
||||
// if unsuccessful, then redirect back to the login with the form data
|
||||
return redirect()->back()->withInput($request->only('email', 'remember'));
|
||||
}
|
||||
|
||||
public function logout()
|
||||
{
|
||||
Auth::guard('contact')->logout();
|
||||
return redirect('/contact/login');
|
||||
}
|
||||
}
|
@ -25,7 +25,7 @@ class LoginController extends Controller
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $redirectTo = '/dashboard';
|
||||
protected $redirectTo = '/home';
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
@ -34,6 +34,6 @@ class LoginController extends Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('guest')->except('logout');
|
||||
$this->middleware('guest:user')->except('logout');
|
||||
}
|
||||
}
|
||||
|
@ -2,11 +2,11 @@
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\User;
|
||||
use Illuminate\Foundation\Auth\RegistersUsers;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
use Illuminate\Foundation\Auth\RegistersUsers;
|
||||
|
||||
class RegisterController extends Controller
|
||||
{
|
||||
@ -43,15 +43,14 @@ class RegisterController extends Controller
|
||||
/**
|
||||
* Get a validator for an incoming registration request.
|
||||
*
|
||||
* @param array $data
|
||||
*
|
||||
* @param array $data
|
||||
* @return \Illuminate\Contracts\Validation\Validator
|
||||
*/
|
||||
protected function validator(array $data)
|
||||
{
|
||||
return Validator::make($data, [
|
||||
'name' => 'required|string|max:255',
|
||||
'email' => 'required|string|email|max:255|unique:users',
|
||||
'first_name' => 'required|string|max:255',
|
||||
'email' => 'required|string|email|max:255|unique:users',
|
||||
'password' => 'required|string|min:6|confirmed',
|
||||
]);
|
||||
}
|
||||
@ -59,15 +58,14 @@ class RegisterController extends Controller
|
||||
/**
|
||||
* Create a new user instance after a valid registration.
|
||||
*
|
||||
* @param array $data
|
||||
*
|
||||
* @param array $data
|
||||
* @return \App\User
|
||||
*/
|
||||
protected function create(array $data)
|
||||
{
|
||||
return User::create([
|
||||
'name' => $data['name'],
|
||||
'email' => $data['email'],
|
||||
'first_name' => $data['first_name'],
|
||||
'email' => $data['email'],
|
||||
'password' => Hash::make($data['password']),
|
||||
]);
|
||||
}
|
||||
|
@ -2,7 +2,8 @@
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Routing\Controller;
|
||||
use Illuminate\Foundation\Auth\VerifiesEmails;
|
||||
|
||||
class VerificationController extends Controller
|
||||
@ -14,7 +15,7 @@ class VerificationController extends Controller
|
||||
|
|
||||
| This controller is responsible for handling email verification for any
|
||||
| user that recently registered with the application. Emails may also
|
||||
| be re-sent if the user didn't receive the original email message.
|
||||
| be resent if the user did not receive the original email message.
|
||||
|
|
||||
*/
|
||||
|
||||
|
22
app/Http/Controllers/ContactController.php
Normal file
22
app/Http/Controllers/ContactController.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ContactController extends Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('auth:contact');
|
||||
}
|
||||
/**
|
||||
* show dashboard.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
return view('contact.index');
|
||||
}
|
||||
}
|
@ -2,10 +2,10 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Illuminate\Foundation\Validation\ValidatesRequests;
|
||||
use Illuminate\Routing\Controller as BaseController;
|
||||
use Illuminate\Foundation\Validation\ValidatesRequests;
|
||||
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
||||
|
||||
class Controller extends BaseController
|
||||
{
|
||||
|
35
app/Http/Controllers/HomeController.php
Normal file
35
app/Http/Controllers/HomeController.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class HomeController extends Controller
|
||||
{
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the application dashboard.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
return view('home');
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
$this->middleware('auth:user');
|
||||
|
||||
return view('dashboard.index');
|
||||
}
|
||||
}
|
@ -51,30 +51,14 @@ class Kernel extends HttpKernel
|
||||
* @var array
|
||||
*/
|
||||
protected $routeMiddleware = [
|
||||
'auth' => \App\Http\Middleware\Authenticate::class,
|
||||
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
|
||||
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
'auth' => \App\Http\Middleware\Authenticate::class,
|
||||
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
|
||||
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
|
||||
'can' => \Illuminate\Auth\Middleware\Authorize::class,
|
||||
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
|
||||
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
|
||||
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
|
||||
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
|
||||
];
|
||||
|
||||
/**
|
||||
* The priority-sorted list of middleware.
|
||||
*
|
||||
* This forces the listed middleware to always be in the given order.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $middlewarePriority = [
|
||||
\Illuminate\Session\Middleware\StartSession::class,
|
||||
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
||||
\App\Http\Middleware\Authenticate::class,
|
||||
\Illuminate\Session\Middleware\AuthenticateSession::class,
|
||||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
\Illuminate\Auth\Middleware\Authorize::class,
|
||||
'can' => \Illuminate\Auth\Middleware\Authorize::class,
|
||||
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
|
||||
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
|
||||
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
|
||||
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
|
||||
];
|
||||
}
|
||||
|
@ -9,8 +9,7 @@ class Authenticate extends Middleware
|
||||
/**
|
||||
* Get the path the user should be redirected to when they are not authenticated.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return string
|
||||
*/
|
||||
protected function redirectTo($request)
|
||||
|
@ -10,18 +10,30 @@ class RedirectIfAuthenticated
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Closure $next
|
||||
* @param string|null $guard
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Closure $next
|
||||
* @param string|null $guard
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle($request, Closure $next, $guard = null)
|
||||
{
|
||||
if (Auth::guard($guard)->check()) {
|
||||
return redirect('/home');
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
switch ($guard) {
|
||||
case 'contact':
|
||||
if (Auth::guard($guard)->check()) {
|
||||
return redirect()->route('contact.dashboard');
|
||||
}
|
||||
break;
|
||||
case 'user':
|
||||
if (Auth::guard($guard)->check()) {
|
||||
return redirect('user.dashboard');
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if (Auth::guard($guard)->check()) {
|
||||
return redirect('/');
|
||||
}
|
||||
break;
|
||||
}
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Fideloper\Proxy\TrustProxies as Middleware;
|
||||
use Illuminate\Http\Request;
|
||||
use Fideloper\Proxy\TrustProxies as Middleware;
|
||||
|
||||
class TrustProxies extends Middleware
|
||||
{
|
||||
|
@ -3,11 +3,8 @@
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
|
||||
class Account extends Model
|
||||
{
|
||||
use Notifiable;
|
||||
|
||||
//
|
||||
}
|
||||
|
10
app/Models/Client.php
Normal file
10
app/Models/Client.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Client extends Model
|
||||
{
|
||||
//
|
||||
}
|
34
app/Models/Contact.php
Normal file
34
app/Models/Contact.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
use Illuminate\Contracts\Auth\MustVerifyEmail;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
|
||||
|
||||
class Contact extends Authenticatable
|
||||
{
|
||||
use Notifiable;
|
||||
|
||||
protected $guard = 'contact';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'first_name', 'last_name', 'email', 'password',
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be hidden for arrays.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $hidden = [
|
||||
'password', 'remember_token',
|
||||
];
|
||||
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Traits;
|
||||
|
||||
/**
|
||||
* Class CalculatesInvoiceTotals.
|
||||
*/
|
||||
class CalculatesInvoiceTotals
|
||||
{
|
||||
protected $invoice;
|
||||
|
||||
/**
|
||||
* InvoiceTotals constructor.
|
||||
*
|
||||
* @param $invoice
|
||||
*/
|
||||
public function __construct($invoice)
|
||||
{
|
||||
$this->invoice = $invoice;
|
||||
}
|
||||
|
||||
public function calculate()
|
||||
{
|
||||
}
|
||||
|
||||
private function sumLineItems()
|
||||
{
|
||||
}
|
||||
}
|
@ -2,22 +2,22 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
use Illuminate\Contracts\Auth\MustVerifyEmail;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
|
||||
class User extends Authenticatable
|
||||
{
|
||||
use Notifiable;
|
||||
|
||||
protected $guard = 'user';
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'email',
|
||||
'password',
|
||||
'first_name', 'last_name', 'email', 'password',
|
||||
];
|
||||
|
||||
/**
|
||||
@ -28,16 +28,4 @@ class User extends Authenticatable
|
||||
protected $hidden = [
|
||||
'password', 'remember_token',
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be casted to native types.
|
||||
*
|
||||
* @var array
|
||||
*
|
||||
* cast types = 'array, object'
|
||||
*/
|
||||
protected $casts = [
|
||||
'settings' => 'object',
|
||||
];
|
||||
|
||||
}
|
||||
|
@ -2,8 +2,9 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Auth;
|
||||
|
||||
class AuthServiceProvider extends ServiceProvider
|
||||
{
|
||||
@ -26,7 +27,7 @@ class AuthServiceProvider extends ServiceProvider
|
||||
$this->registerPolicies();
|
||||
|
||||
Auth::provider('multidb', function ($app, array $config) {
|
||||
return new MultiDatabaseUserProvider($this->app['db']->connection(), $this->app['hash'], 'users');
|
||||
return new MultiDatabaseUserProvider($this->app['db']->connection(), $this->app['hash']);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\Facades\Broadcast;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Illuminate\Support\Facades\Broadcast;
|
||||
|
||||
class BroadcastServiceProvider extends ServiceProvider
|
||||
{
|
||||
|
@ -2,10 +2,10 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\Facades\Event;
|
||||
use Illuminate\Auth\Events\Registered;
|
||||
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
||||
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
|
||||
class EventServiceProvider extends ServiceProvider
|
||||
{
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\User;
|
||||
use App\Models\User;
|
||||
use Illuminate\Auth\GenericUser;
|
||||
use Illuminate\Contracts\Auth\Authenticatable as UserContract;
|
||||
use Illuminate\Contracts\Auth\UserProvider;
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
|
||||
|
||||
class RouteServiceProvider extends ServiceProvider
|
||||
{
|
||||
|
@ -1,5 +0,0 @@
|
||||
{
|
||||
"github-oauth": {
|
||||
"github.com": "94b54e6ba1b449cbe46ddec9eaa6bbbe346efc1e"
|
||||
}
|
||||
}
|
@ -12,7 +12,7 @@
|
||||
*/
|
||||
|
||||
$app = new Illuminate\Foundation\Application(
|
||||
dirname(__DIR__)
|
||||
realpath(__DIR__.'/../')
|
||||
);
|
||||
|
||||
/*
|
||||
|
0
bootstrap/cache/.gitignore
vendored
Executable file → Normal file
0
bootstrap/cache/.gitignore
vendored
Executable file → Normal file
22
composer.lock
generated
22
composer.lock
generated
@ -596,16 +596,16 @@
|
||||
},
|
||||
{
|
||||
"name": "laravel/tinker",
|
||||
"version": "v1.0.7",
|
||||
"version": "v1.0.8",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/laravel/tinker.git",
|
||||
"reference": "e3086ee8cb1f54a39ae8dcb72d1c37d10128997d"
|
||||
"reference": "cafbf598a90acde68985660e79b2b03c5609a405"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/laravel/tinker/zipball/e3086ee8cb1f54a39ae8dcb72d1c37d10128997d",
|
||||
"reference": "e3086ee8cb1f54a39ae8dcb72d1c37d10128997d",
|
||||
"url": "https://api.github.com/repos/laravel/tinker/zipball/cafbf598a90acde68985660e79b2b03c5609a405",
|
||||
"reference": "cafbf598a90acde68985660e79b2b03c5609a405",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -655,7 +655,7 @@
|
||||
"laravel",
|
||||
"psysh"
|
||||
],
|
||||
"time": "2018-05-17T13:42:07+00:00"
|
||||
"time": "2018-10-12T19:39:35+00:00"
|
||||
},
|
||||
{
|
||||
"name": "league/flysystem",
|
||||
@ -1177,23 +1177,23 @@
|
||||
},
|
||||
{
|
||||
"name": "psy/psysh",
|
||||
"version": "v0.9.8",
|
||||
"version": "v0.9.9",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/bobthecow/psysh.git",
|
||||
"reference": "ed3c32c4304e1a678a6e0f9dc11dd2d927d89555"
|
||||
"reference": "9aaf29575bb8293206bb0420c1e1c87ff2ffa94e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/ed3c32c4304e1a678a6e0f9dc11dd2d927d89555",
|
||||
"reference": "ed3c32c4304e1a678a6e0f9dc11dd2d927d89555",
|
||||
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/9aaf29575bb8293206bb0420c1e1c87ff2ffa94e",
|
||||
"reference": "9aaf29575bb8293206bb0420c1e1c87ff2ffa94e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"dnoegel/php-xdg-base-dir": "0.1",
|
||||
"ext-json": "*",
|
||||
"ext-tokenizer": "*",
|
||||
"jakub-onderka/php-console-highlighter": "0.3.*",
|
||||
"jakub-onderka/php-console-highlighter": "0.3.*|0.4.*",
|
||||
"nikic/php-parser": "~1.3|~2.0|~3.0|~4.0",
|
||||
"php": ">=5.4.0",
|
||||
"symfony/console": "~2.3.10|^2.4.2|~3.0|~4.0",
|
||||
@ -1247,7 +1247,7 @@
|
||||
"interactive",
|
||||
"shell"
|
||||
],
|
||||
"time": "2018-09-05T11:40:09+00:00"
|
||||
"time": "2018-10-13T15:16:03+00:00"
|
||||
},
|
||||
{
|
||||
"name": "ramsey/uuid",
|
||||
|
@ -14,7 +14,7 @@ return [
|
||||
*/
|
||||
|
||||
'defaults' => [
|
||||
'guard' => 'web',
|
||||
'guard' => 'user',
|
||||
'passwords' => 'users',
|
||||
],
|
||||
|
||||
@ -37,14 +37,21 @@ return [
|
||||
|
||||
'guards' => [
|
||||
'web' => [
|
||||
'driver' => 'session',
|
||||
'driver' => 'session',
|
||||
'provider' => 'users',
|
||||
],
|
||||
|
||||
'api' => [
|
||||
'driver' => 'token',
|
||||
'driver' => 'token',
|
||||
'provider' => 'users',
|
||||
],
|
||||
'user' => [
|
||||
'driver' => 'session',
|
||||
'provider' => 'users',
|
||||
],
|
||||
'contact' => [
|
||||
'driver' => 'session',
|
||||
'provider' => 'contacts',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
@ -67,7 +74,11 @@ return [
|
||||
'providers' => [
|
||||
'users' => [
|
||||
'driver' => env('AUTH_PROVIDER', 'eloquent'),
|
||||
'model' => App\Models\User::class,
|
||||
'model' => App\Models\User::class,
|
||||
],
|
||||
'contacts' => [
|
||||
'driver' => env('AUTH_PROVIDER', 'eloquent'),
|
||||
'model' => App\Models\Contact::class,
|
||||
],
|
||||
|
||||
// 'users' => [
|
||||
@ -94,8 +105,13 @@ return [
|
||||
'passwords' => [
|
||||
'users' => [
|
||||
'provider' => 'users',
|
||||
'table' => 'password_resets',
|
||||
'expire' => 60,
|
||||
'table' => 'password_resets',
|
||||
'expire' => 60,
|
||||
],
|
||||
'contacts' => [
|
||||
'provider' => 'contacts',
|
||||
'table' => 'password_resets',
|
||||
'expire' => 60,
|
||||
],
|
||||
],
|
||||
|
||||
|
@ -31,18 +31,18 @@ return [
|
||||
'connections' => [
|
||||
|
||||
'pusher' => [
|
||||
'driver' => 'pusher',
|
||||
'key' => env('PUSHER_APP_KEY'),
|
||||
'secret' => env('PUSHER_APP_SECRET'),
|
||||
'app_id' => env('PUSHER_APP_ID'),
|
||||
'driver' => 'pusher',
|
||||
'key' => env('PUSHER_APP_KEY'),
|
||||
'secret' => env('PUSHER_APP_SECRET'),
|
||||
'app_id' => env('PUSHER_APP_ID'),
|
||||
'options' => [
|
||||
'cluster' => env('PUSHER_APP_CLUSTER'),
|
||||
'cluster' => env('PUSHER_APP_CLUSTER'),
|
||||
'encrypted' => true,
|
||||
],
|
||||
],
|
||||
|
||||
'redis' => [
|
||||
'driver' => 'redis',
|
||||
'driver' => 'redis',
|
||||
'connection' => 'default',
|
||||
],
|
||||
|
||||
|
@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
@ -41,20 +39,20 @@ return [
|
||||
],
|
||||
|
||||
'database' => [
|
||||
'driver' => 'database',
|
||||
'table' => 'cache',
|
||||
'driver' => 'database',
|
||||
'table' => 'cache',
|
||||
'connection' => null,
|
||||
],
|
||||
|
||||
'file' => [
|
||||
'driver' => 'file',
|
||||
'path' => storage_path('framework/cache/data'),
|
||||
'path' => storage_path('framework/cache/data'),
|
||||
],
|
||||
|
||||
'memcached' => [
|
||||
'driver' => 'memcached',
|
||||
'driver' => 'memcached',
|
||||
'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
|
||||
'sasl' => [
|
||||
'sasl' => [
|
||||
env('MEMCACHED_USERNAME'),
|
||||
env('MEMCACHED_PASSWORD'),
|
||||
],
|
||||
@ -63,15 +61,15 @@ return [
|
||||
],
|
||||
'servers' => [
|
||||
[
|
||||
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
|
||||
'port' => env('MEMCACHED_PORT', 11211),
|
||||
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
|
||||
'port' => env('MEMCACHED_PORT', 11211),
|
||||
'weight' => 100,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
'redis' => [
|
||||
'driver' => 'redis',
|
||||
'driver' => 'redis',
|
||||
'connection' => 'cache',
|
||||
],
|
||||
|
||||
@ -88,6 +86,9 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'),
|
||||
'prefix' => env(
|
||||
'CACHE_PREFIX',
|
||||
str_slug(env('APP_NAME', 'laravel'), '_').'_cache'
|
||||
),
|
||||
|
||||
];
|
||||
|
@ -45,23 +45,23 @@ return [
|
||||
|
||||
'local' => [
|
||||
'driver' => 'local',
|
||||
'root' => storage_path('app'),
|
||||
'root' => storage_path('app'),
|
||||
],
|
||||
|
||||
'public' => [
|
||||
'driver' => 'local',
|
||||
'root' => storage_path('app/public'),
|
||||
'url' => env('APP_URL').'/storage',
|
||||
'driver' => 'local',
|
||||
'root' => storage_path('app/public'),
|
||||
'url' => env('APP_URL').'/storage',
|
||||
'visibility' => 'public',
|
||||
],
|
||||
|
||||
's3' => [
|
||||
'driver' => 's3',
|
||||
'key' => env('AWS_ACCESS_KEY_ID'),
|
||||
'key' => env('AWS_ACCESS_KEY_ID'),
|
||||
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
||||
'region' => env('AWS_DEFAULT_REGION'),
|
||||
'bucket' => env('AWS_BUCKET'),
|
||||
'url' => env('AWS_URL'),
|
||||
'url' => env('AWS_URL'),
|
||||
],
|
||||
|
||||
],
|
||||
|
@ -44,9 +44,9 @@ return [
|
||||
*/
|
||||
|
||||
'argon' => [
|
||||
'memory' => 1024,
|
||||
'memory' => 1024,
|
||||
'threads' => 2,
|
||||
'time' => 2,
|
||||
'time' => 2,
|
||||
],
|
||||
|
||||
];
|
||||
|
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
|
||||
use Monolog\Handler\StreamHandler;
|
||||
use Monolog\Handler\SyslogUdpHandler;
|
||||
|
||||
return [
|
||||
|
||||
@ -35,57 +34,47 @@ return [
|
||||
|
||||
'channels' => [
|
||||
'stack' => [
|
||||
'driver' => 'stack',
|
||||
'channels' => ['daily'],
|
||||
'driver' => 'stack',
|
||||
'channels' => ['single'],
|
||||
],
|
||||
|
||||
'single' => [
|
||||
'driver' => 'single',
|
||||
'path' => storage_path('logs/laravel.log'),
|
||||
'level' => 'debug',
|
||||
'path' => storage_path('logs/laravel.log'),
|
||||
'level' => 'debug',
|
||||
],
|
||||
|
||||
'daily' => [
|
||||
'driver' => 'daily',
|
||||
'path' => storage_path('logs/laravel.log'),
|
||||
'level' => 'debug',
|
||||
'days' => 14,
|
||||
'path' => storage_path('logs/laravel.log'),
|
||||
'level' => 'debug',
|
||||
'days' => 7,
|
||||
],
|
||||
|
||||
'slack' => [
|
||||
'driver' => 'slack',
|
||||
'url' => env('LOG_SLACK_WEBHOOK_URL'),
|
||||
'driver' => 'slack',
|
||||
'url' => env('LOG_SLACK_WEBHOOK_URL'),
|
||||
'username' => 'Laravel Log',
|
||||
'emoji' => ':boom:',
|
||||
'level' => 'critical',
|
||||
],
|
||||
|
||||
'papertrail' => [
|
||||
'driver' => 'monolog',
|
||||
'level' => 'debug',
|
||||
'handler' => SyslogUdpHandler::class,
|
||||
'handler_with' => [
|
||||
'host' => env('PAPERTRAIL_URL'),
|
||||
'port' => env('PAPERTRAIL_PORT'),
|
||||
],
|
||||
'emoji' => ':boom:',
|
||||
'level' => 'critical',
|
||||
],
|
||||
|
||||
'stderr' => [
|
||||
'driver' => 'monolog',
|
||||
'driver' => 'monolog',
|
||||
'handler' => StreamHandler::class,
|
||||
'with' => [
|
||||
'with' => [
|
||||
'stream' => 'php://stderr',
|
||||
],
|
||||
],
|
||||
|
||||
'syslog' => [
|
||||
'driver' => 'syslog',
|
||||
'level' => 'debug',
|
||||
'level' => 'debug',
|
||||
],
|
||||
|
||||
'errorlog' => [
|
||||
'driver' => 'errorlog',
|
||||
'level' => 'debug',
|
||||
'level' => 'debug',
|
||||
],
|
||||
],
|
||||
|
||||
|
@ -57,7 +57,7 @@ return [
|
||||
|
||||
'from' => [
|
||||
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
|
||||
'name' => env('MAIL_FROM_NAME', 'Example'),
|
||||
'name' => env('MAIL_FROM_NAME', 'Example'),
|
||||
],
|
||||
|
||||
/*
|
||||
|
@ -35,34 +35,34 @@ return [
|
||||
],
|
||||
|
||||
'database' => [
|
||||
'driver' => 'database',
|
||||
'table' => 'jobs',
|
||||
'queue' => 'default',
|
||||
'driver' => 'database',
|
||||
'table' => 'jobs',
|
||||
'queue' => 'default',
|
||||
'retry_after' => 90,
|
||||
],
|
||||
|
||||
'beanstalkd' => [
|
||||
'driver' => 'beanstalkd',
|
||||
'host' => 'localhost',
|
||||
'queue' => 'default',
|
||||
'driver' => 'beanstalkd',
|
||||
'host' => 'localhost',
|
||||
'queue' => 'default',
|
||||
'retry_after' => 90,
|
||||
],
|
||||
|
||||
'sqs' => [
|
||||
'driver' => 'sqs',
|
||||
'key' => env('SQS_KEY', 'your-public-key'),
|
||||
'key' => env('SQS_KEY', 'your-public-key'),
|
||||
'secret' => env('SQS_SECRET', 'your-secret-key'),
|
||||
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
|
||||
'queue' => env('SQS_QUEUE', 'your-queue-name'),
|
||||
'queue' => env('SQS_QUEUE', 'your-queue-name'),
|
||||
'region' => env('SQS_REGION', 'us-east-1'),
|
||||
],
|
||||
|
||||
'redis' => [
|
||||
'driver' => 'redis',
|
||||
'connection' => 'default',
|
||||
'queue' => 'default',
|
||||
'driver' => 'redis',
|
||||
'connection' => 'default',
|
||||
'queue' => 'default',
|
||||
'retry_after' => 90,
|
||||
'block_for' => null,
|
||||
'block_for' => null,
|
||||
],
|
||||
|
||||
],
|
||||
@ -80,7 +80,7 @@ return [
|
||||
|
||||
'failed' => [
|
||||
'database' => env('DB_CONNECTION', 'mysql'),
|
||||
'table' => 'failed_jobs',
|
||||
'table' => 'failed_jobs',
|
||||
],
|
||||
|
||||
];
|
||||
|
@ -14,18 +14,13 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'analytics' => [
|
||||
'tracking_id' => env('TRACKING_ID'),
|
||||
],
|
||||
|
||||
'mailgun' => [
|
||||
'domain' => env('MAILGUN_DOMAIN'),
|
||||
'secret' => env('MAILGUN_SECRET'),
|
||||
'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
|
||||
'domain' => env('MAILGUN_DOMAIN'),
|
||||
'secret' => env('MAILGUN_SECRET'),
|
||||
],
|
||||
|
||||
'ses' => [
|
||||
'key' => env('SES_KEY'),
|
||||
'key' => env('SES_KEY'),
|
||||
'secret' => env('SES_SECRET'),
|
||||
'region' => env('SES_REGION', 'us-east-1'),
|
||||
],
|
||||
@ -35,8 +30,8 @@ return [
|
||||
],
|
||||
|
||||
'stripe' => [
|
||||
'model' => App\Models\User::class,
|
||||
'key' => env('STRIPE_KEY'),
|
||||
'model' => App\User::class,
|
||||
'key' => env('STRIPE_KEY'),
|
||||
'secret' => env('STRIPE_SECRET'),
|
||||
],
|
||||
|
||||
|
@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
@ -126,7 +124,7 @@ return [
|
||||
|
||||
'cookie' => env(
|
||||
'SESSION_COOKIE',
|
||||
Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
|
||||
str_slug(env('APP_NAME', 'laravel'), '_').'_session'
|
||||
),
|
||||
|
||||
/*
|
||||
|
23
database/factories/ContactFactory.php
Normal file
23
database/factories/ContactFactory.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
use Faker\Generator as Faker;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Model Factories
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This directory should contain each of the model factory definitions for
|
||||
| your application. Factories provide a convenient way to generate new
|
||||
| model instances for testing / seeding your application's database.
|
||||
|
|
||||
*/
|
||||
|
||||
$factory->define(App\Models\Contact::class, function (Faker $faker) {
|
||||
return [
|
||||
'first_name' => $faker->name,
|
||||
'email' => $faker->unique()->safeEmail,
|
||||
'password' => bcrypt('secret'),
|
||||
'remember_token' => str_random(10),
|
||||
];
|
||||
});
|
@ -15,6 +15,7 @@ class CreateUsersTable extends Migration
|
||||
{
|
||||
Schema::create('accounts', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name')->nullable();
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
});
|
||||
@ -51,6 +52,51 @@ class CreateUsersTable extends Migration
|
||||
|
||||
});
|
||||
|
||||
Schema::create('clients', function (Blueprint $table) {
|
||||
|
||||
$table->increments('id');
|
||||
$table->unsignedInteger('account_id')->index();
|
||||
$table->string('name')->nullable();
|
||||
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
||||
$table->foreign('account_id')->references('id')->on('accounts')->onDelete('cascade');
|
||||
|
||||
});
|
||||
|
||||
Schema::create('contacts', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->unsignedInteger('account_id')->index();
|
||||
$table->unsignedInteger('client_id')->index();
|
||||
$table->string('first_name')->nullable();
|
||||
$table->string('last_name')->nullable();
|
||||
$table->string('phone')->nullable();
|
||||
$table->string('email')->unique();
|
||||
$table->timestamp('email_verified_at')->nullable();
|
||||
$table->string('confirmation_code')->nullable();
|
||||
$table->boolean('registered')->default(false);
|
||||
$table->boolean('confirmed')->default(false);
|
||||
$table->smallInteger('failed_logins')->nullable();
|
||||
$table->string('oauth_user_id')->nullable()->unique();
|
||||
$table->unsignedInteger('oauth_provider_id')->nullable()->unique();
|
||||
$table->string('google_2fa_secret')->nullable();
|
||||
$table->string('accepted_terms_version')->nullable();
|
||||
$table->string('avatar', 255)->default('');
|
||||
$table->unsignedInteger('avatar_width')->nullable();
|
||||
$table->unsignedInteger('avatar_height')->nullable();
|
||||
$table->unsignedInteger('avatar_size')->nullable();
|
||||
$table->string('password');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
||||
$table->foreign('account_id')->references('id')->on('accounts')->onDelete('cascade');
|
||||
$table->foreign('client_id')->references('id')->on('clients')->onDelete('cascade');
|
||||
|
||||
});
|
||||
|
||||
|
||||
Schema::create('user_accounts', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->unsignedInteger('account_id')->index();
|
||||
@ -61,6 +107,9 @@ class CreateUsersTable extends Migration
|
||||
$table->boolean('is_locked'); // locks user out of account
|
||||
$table->boolean('is_default'); //default account to present to the user
|
||||
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
||||
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
|
||||
$table->foreign('account_id')->references('id')->on('accounts')->onDelete('cascade');
|
||||
|
||||
@ -94,6 +143,8 @@ class CreateUsersTable extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('contacts');
|
||||
Schema::dropIfExists('clients');
|
||||
Schema::dropIfExists('account_gateways');
|
||||
Schema::dropIfExists('user_accounts');
|
||||
Schema::dropIfExists('users');
|
||||
|
67
database/seeds/UsersTableSeeder.php
Normal file
67
database/seeds/UsersTableSeeder.php
Normal file
@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Account;
|
||||
use App\Models\Client;
|
||||
use App\Models\Contact;
|
||||
use App\Models\User;
|
||||
use App\Models\UserAccount;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class UsersTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
require_once app_path() . '/Constants.php';
|
||||
|
||||
$this->command->info('Running UserTableSeeder');
|
||||
|
||||
Eloquent::unguard();
|
||||
|
||||
$faker = Faker\Factory::create();
|
||||
|
||||
$account = Account::create([
|
||||
'name' => $faker->name,
|
||||
]);
|
||||
|
||||
$user = User::create([
|
||||
'first_name' => $faker->firstName,
|
||||
'last_name' => $faker->lastName,
|
||||
'email' => TEST_USERNAME,
|
||||
'account_id' => $account->id,
|
||||
'password' => Hash::make(TEST_PASSWORD),
|
||||
'registered' => true,
|
||||
'confirmed' => true,
|
||||
]);
|
||||
|
||||
$client = Client::create([
|
||||
'name' => $faker->name,
|
||||
'account_id' => $account->id,
|
||||
]);
|
||||
|
||||
Contact::create([
|
||||
'first_name' => $faker->firstName,
|
||||
'last_name' => $faker->lastName,
|
||||
'email' => TEST_CLIENTNAME,
|
||||
'account_id' => $account->id,
|
||||
'password' => Hash::make(TEST_PASSWORD),
|
||||
'registered' => true,
|
||||
'confirmed' => true,
|
||||
'client_id' =>$client->id,
|
||||
]);
|
||||
|
||||
UserAccount::create([
|
||||
'account_id' => $account->id,
|
||||
'user_id' => $user->id,
|
||||
'is_owner' => 1,
|
||||
'is_admin' => 1,
|
||||
'is_locked' => 0,
|
||||
'is_default' => 1,
|
||||
]);
|
||||
}
|
||||
}
|
@ -18,11 +18,5 @@
|
||||
"lodash": "^4.17.5",
|
||||
"popper.js": "^1.12",
|
||||
"vue": "^2.5.7"
|
||||
},
|
||||
"dependencies": {
|
||||
"bulma": "^0.7.1",
|
||||
"bulma-admin-bar": "^1.0.0",
|
||||
"bulma-extensions": "^3.0.0",
|
||||
"gulp": "^3.9.1"
|
||||
}
|
||||
}
|
||||
|
7
public/css/app.css
vendored
7
public/css/app.css
vendored
File diff suppressed because one or more lines are too long
35
public/css/login.css
vendored
35
public/css/login.css
vendored
@ -1,35 +0,0 @@
|
||||
html,body {
|
||||
font-family: 'Open Sans', serif;
|
||||
font-size: 14px;
|
||||
font-weight: 300;
|
||||
}
|
||||
.hero.is-success {
|
||||
background: #F2F6FA;
|
||||
}
|
||||
.hero .nav, .hero.is-success .nav {
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.box {
|
||||
margin-top: 5rem;
|
||||
}
|
||||
.avatar {
|
||||
margin-top: -70px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
.avatar img {
|
||||
padding: 5px;
|
||||
background: #fff;
|
||||
border-radius: 50%;
|
||||
-webkit-box-shadow: 0 2px 3px rgba(10,10,10,.1), 0 0 0 1px rgba(10,10,10,.1);
|
||||
box-shadow: 0 2px 3px rgba(10,10,10,.1), 0 0 0 1px rgba(10,10,10,.1);
|
||||
}
|
||||
input {
|
||||
font-weight: 300;
|
||||
}
|
||||
p {
|
||||
font-weight: 700;
|
||||
}
|
||||
p.subtitle {
|
||||
padding-top: 1rem;
|
||||
}
|
1
public/css/ninja.css
vendored
1
public/css/ninja.css
vendored
File diff suppressed because one or more lines are too long
@ -1,10 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Laravel - A PHP Framework For Web Artisans.
|
||||
* Laravel - A PHP Framework For Web Artisans
|
||||
*
|
||||
* @package Laravel
|
||||
* @author Taylor Otwell <taylor@laravel.com>
|
||||
*/
|
||||
|
||||
define('LARAVEL_START', microtime(true));
|
||||
|
||||
/*
|
||||
|
2
public/js/app.js
vendored
2
public/js/app.js
vendored
File diff suppressed because one or more lines are too long
18
public/js/ninja.js
vendored
18
public/js/ninja.js
vendored
File diff suppressed because one or more lines are too long
@ -1,19 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Authentication Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used during authentication for various
|
||||
| messages that we need to display to the user. You are free to modify
|
||||
| these language lines according to your application's requirements.
|
||||
|
|
||||
*/
|
||||
|
||||
'failed' => 'Aquestes credencials no concorden amb els nostres registres.',
|
||||
'throttle' => "Heu superat el nombre màxim d'intents d'accés. Per favor, torna a intentar-ho en :seconds segons.",
|
||||
|
||||
];
|
@ -1,19 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pagination Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used by the paginator library to build
|
||||
| the simple pagination links. You are free to change them to anything
|
||||
| you want to customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'previous' => '« Anterior',
|
||||
'next' => 'Següent »',
|
||||
|
||||
];
|
@ -1,22 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reminder Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are the default lines which match reasons
|
||||
| that are given by the password broker for a password update attempt
|
||||
| has failed, such as for an invalid token or invalid new password.
|
||||
|
|
||||
*/
|
||||
|
||||
'password' => 'Les contrasenyes han de contenir almenys 6 caràcters i coincidir.',
|
||||
'reset' => "La contrasenya s'ha restablert!",
|
||||
'sent' => 'Recordatori de contrasenya enviat!',
|
||||
'token' => 'Aquest token de recuperació de contrasenya és invàlid.',
|
||||
'user' => 'No podem trobar a un usuari amb aquest correu electrònic.',
|
||||
|
||||
];
|
File diff suppressed because it is too large
Load Diff
@ -1,116 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines contain the default error messages used by
|
||||
| the validator class. Some of these rules have multiple versions such
|
||||
| such as the size rules. Feel free to tweak each of these messages.
|
||||
|
|
||||
*/
|
||||
|
||||
'accepted' => ':attribute ha de ser acceptat.',
|
||||
'active_url' => ':attribute no és un URL vàlid.',
|
||||
'after' => ':attribute ha de ser una data posterior a :date.',
|
||||
'alpha' => ':attribute només pot contenir lletres.',
|
||||
'alpha_dash' => ':attribute només por contenir lletres, números i guions.',
|
||||
'alpha_num' => ':attribute només pot contenir lletres i números.',
|
||||
'array' => ':attribute ha de ser un conjunt.',
|
||||
'before' => ':attribute ha de ser una data anterior a :date.',
|
||||
'between' => [
|
||||
'numeric' => ":attribute ha d'estar entre :min - :max.",
|
||||
'file' => ':attribute ha de pesar entre :min - :max kilobytes.',
|
||||
'string' => ':attribute ha de tenir entre :min - :max caràcters.',
|
||||
'array' => ':attribute ha de tenir entre :min - :max ítems.',
|
||||
],
|
||||
'boolean' => 'El camp :attribute ha de ser veritat o fals',
|
||||
'confirmed' => 'La confirmació de :attribute no coincideix.',
|
||||
'date' => ':attribute no és una data vàlida.',
|
||||
'date_format' => ':attribute no correspon al format :format.',
|
||||
'different' => ':attribute i :other han de ser diferents.',
|
||||
'digits' => ':attribute ha de tenir :digits digits.',
|
||||
'digits_between' => ':attribute ha de tenir entre :min i :max digits.',
|
||||
'dimensions' => 'The :attribute has invalid image dimensions.',
|
||||
'distinct' => 'The :attribute field has a duplicate value.',
|
||||
'email' => ':attribute no és un e-mail vàlid',
|
||||
'exists' => ':attribute és invàlid.',
|
||||
'filled' => 'El camp :attribute és obligatori.',
|
||||
'image' => ':attribute ha de ser una imatge.',
|
||||
'in' => ':attribute és invàlid',
|
||||
'in_array' => 'The :attribute field does not exist in :other.',
|
||||
'integer' => ':attribute ha de ser un nombre enter.',
|
||||
'ip' => ':attribute ha de ser una adreça IP vàlida.',
|
||||
'json' => 'El camp :attribute ha de contenir una cadena JSON vàlida.',
|
||||
'max' => [
|
||||
'numeric' => ':attribute no ha de ser major a :max.',
|
||||
'file' => ':attribute no ha de ser més gran que :max kilobytes.',
|
||||
'string' => ':attribute no ha de ser més gran que :max characters.',
|
||||
'array' => ':attribute no ha de tenir més de :max ítems.',
|
||||
],
|
||||
'mimes' => ':attribute ha de ser un arxiu amb format: :values.',
|
||||
'min' => [
|
||||
'numeric' => "El tamany de :attribute ha de ser d'almenys :min.",
|
||||
'file' => "El tamany de :attribute ha de ser d'almenys :min kilobytes.",
|
||||
'string' => ':attribute ha de contenir almenys :min caràcters.',
|
||||
'array' => ':attribute ha de tenir almenys :min ítems.',
|
||||
],
|
||||
'not_in' => ':attribute és invàlid.',
|
||||
'numeric' => ':attribute ha de ser numèric.',
|
||||
'present' => 'The :attribute field must be present.',
|
||||
'regex' => 'El format de :attribute és invàlid.',
|
||||
'required' => 'El camp :attribute és obligatori.',
|
||||
'required_if' => 'El camp :attribute és obligatori quan :other és :value.',
|
||||
'required_unless' => 'The :attribute field is required unless :other is in :values.',
|
||||
'required_with' => 'El camp :attribute és obligatori quan :values és present.',
|
||||
'required_with_all' => 'El camp :attribute és obligatori quan :values és present.',
|
||||
'required_without' => 'El camp :attribute és obligatori quan :values no és present.',
|
||||
'required_without_all' => 'El camp :attribute és obligatori quan cap dels :values estan presents.',
|
||||
'same' => ':attribute i :other han de coincidir.',
|
||||
'size' => [
|
||||
'numeric' => 'El tamany de :attribute ha de ser :size.',
|
||||
'file' => 'El tamany de :attribute ha de ser :size kilobytes.',
|
||||
'string' => ':attribute ha de contenir :size caràcters.',
|
||||
'array' => ':attribute ha de contenir :size ítems.',
|
||||
],
|
||||
'string' => 'El camp :attribute ha de ser una cadena de caràcters.',
|
||||
'timezone' => 'El camp :attribute ha de ser una zona vàlida.',
|
||||
'unique' => ':attribute ja ha estat registrat.',
|
||||
'url' => 'El format :attribute és invàlid.',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify custom validation messages for attributes using the
|
||||
| convention "attribute.rule" to name the lines. This makes it quick to
|
||||
| specify a specific custom language line for a given attribute rule.
|
||||
|
|
||||
*/
|
||||
|
||||
'custom' => [
|
||||
'attribute-name' => [
|
||||
'rule-name' => 'custom-message',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Attributes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used to swap attribute place-holders
|
||||
| with something more reader friendly such as E-Mail Address instead
|
||||
| of "email". This simply helps us make messages a little cleaner.
|
||||
|
|
||||
*/
|
||||
|
||||
'attributes' => [
|
||||
//
|
||||
],
|
||||
|
||||
];
|
@ -1,19 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Authentication Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used during authentication for various
|
||||
| messages that we need to display to the user. You are free to modify
|
||||
| these language lines according to your application's requirements.
|
||||
|
|
||||
*/
|
||||
|
||||
'failed' => 'Tyto přihlašovací údajě neodpovídají žadnému záznamu.',
|
||||
'throttle' => 'Příliš mnoho pokusů o přihlášení. Zkuste to prosím znovu za :seconds vteřin.',
|
||||
|
||||
];
|
@ -1,19 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pagination Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used by the paginator library to build
|
||||
| the simple pagination links. You are free to change them to anything
|
||||
| you want to customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'previous' => '« předchozí',
|
||||
'next' => 'další »',
|
||||
|
||||
];
|
@ -1,22 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reminder Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are the default lines which match reasons
|
||||
| that are given by the password broker for a password update attempt
|
||||
| has failed, such as for an invalid token or invalid new password.
|
||||
|
|
||||
*/
|
||||
|
||||
'password' => 'Heslo musí obsahovat alespoň 6 znaků a musí odpovídat.',
|
||||
'reset' => 'Heslo bylo obnoveno!',
|
||||
'sent' => 'Upomínka ke změně hesla byla odeslána!',
|
||||
'token' => 'Klíč pro obnovu hesla je nesprávný.',
|
||||
'user' => 'Nepodařilo se najít uživatele s touto e-mailovou adresou.',
|
||||
|
||||
];
|
File diff suppressed because it is too large
Load Diff
@ -1,115 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines contain the default error messages used by
|
||||
| the validator class. Some of these rules have multiple versions such
|
||||
| such as the size rules. Feel free to tweak each of these messages.
|
||||
|
|
||||
*/
|
||||
|
||||
'accepted' => ':attribute musí být akceptován.',
|
||||
'active_url' => ':attribute není platnou URL adresou.',
|
||||
'after' => ':attribute musí být datum po :date.',
|
||||
'alpha' => ':attribute může obsahovat pouze písmena.',
|
||||
'alpha_dash' => ':attribute může obsahovat pouze písmena, číslice, pomlčky a podtržítka. České znaky (á, é, í, ó, ú, ů, ž, š, č, ř, ď, ť, ň) nejsou podporovány.',
|
||||
'alpha_num' => ':attribute může obsahovat pouze písmena a číslice.',
|
||||
'array' => ':attribute musí být pole.',
|
||||
'before' => ':attribute musí být datum před :date.',
|
||||
'between' => [
|
||||
'numeric' => ':attribute musí být hodnota mezi :min a :max.',
|
||||
'file' => ':attribute musí být větší než :min a menší než :max Kilobytů.',
|
||||
'string' => ':attribute musí být delší než :min a kratší než :max znaků.',
|
||||
'array' => ':attribute musí obsahovat nejméně :min a nesmí obsahovat více než :max prvků.',
|
||||
],
|
||||
'boolean' => ':attribute musí být true nebo false',
|
||||
'confirmed' => ':attribute nebylo odsouhlaseno.',
|
||||
'date' => ':attribute musí být platné datum.',
|
||||
'date_format' => ':attribute není platný formát data podle :format.',
|
||||
'different' => ':attribute a :other se musí lišit.',
|
||||
'digits' => ':attribute musí být :digits pozic dlouhé.',
|
||||
'digits_between' => ':attribute musí být dlouhé nejméně :min a nejvíce :max pozic.',
|
||||
'distinct' => 'The :attribute field has a duplicate value.',
|
||||
'email' => ':attribute není platný formát.',
|
||||
'exists' => 'Zvolená hodnota pro :attribute není platná.',
|
||||
'filled' => ':attribute musí být vyplněno.',
|
||||
'image' => ':attribute musí být obrázek.',
|
||||
'in' => 'Zvolená hodnota pro :attribute není platná.',
|
||||
'in_array' => 'The :attribute field does not exist in :other.',
|
||||
'integer' => ':attribute musí být celé číslo.',
|
||||
'ip' => ':attribute musí být platnou IP adresou.',
|
||||
'json' => ':attribute musí být platný JSON řetězec.',
|
||||
'max' => [
|
||||
'numeric' => ':attribute musí být nižší než :max.',
|
||||
'file' => ':attribute musí být menší než :max Kilobytů.',
|
||||
'string' => ':attribute musí být kratší než :max znaků.',
|
||||
'array' => ':attribute nesmí obsahovat více než :max prvků.',
|
||||
],
|
||||
'mimes' => ':attribute musí být jeden z následujících datových typů :values.',
|
||||
'min' => [
|
||||
'numeric' => ':attribute musí být větší než :min.',
|
||||
'file' => ':attribute musí být větší než :min Kilobytů.',
|
||||
'string' => ':attribute musí být delší než :min znaků.',
|
||||
'array' => ':attribute musí obsahovat více než :min prvků.',
|
||||
],
|
||||
'not_in' => 'Zvolená hodnota pro :attribute je neplatná.',
|
||||
'numeric' => ':attribute musí být číslo.',
|
||||
'present' => 'The :attribute field must be present.',
|
||||
'regex' => ':attribute nemá správný formát.',
|
||||
'required' => ':attribute musí být vyplněno.',
|
||||
'required_if' => ':attribute musí být vyplněno pokud :other je :value.',
|
||||
'required_unless' => 'The :attribute field is required unless :other is in :values.',
|
||||
'required_with' => ':attribute musí být vyplněno pokud :values je vyplněno.',
|
||||
'required_with_all' => ':attribute musí být vyplněno pokud :values je zvoleno.',
|
||||
'required_without' => ':attribute musí být vyplněno pokud :values není vyplněno.',
|
||||
'required_without_all' => ':attribute musí být vyplněno pokud není žádné z :values zvoleno.',
|
||||
'same' => ':attribute a :other se musí shodovat.',
|
||||
'size' => [
|
||||
'numeric' => ':attribute musí být přesně :size.',
|
||||
'file' => ':attribute musí mít přesně :size Kilobytů.',
|
||||
'string' => ':attribute musí být přesně :size znaků dlouhý.',
|
||||
'array' => ':attribute musí obsahovat právě :size prvků.',
|
||||
],
|
||||
'string' => ':attribute musí být řetězec znaků.',
|
||||
'timezone' => ':attribute musí být platná časová zóna.',
|
||||
'unique' => ':attribute musí být unikátní.',
|
||||
'url' => 'Formát :attribute je neplatný.',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify custom validation messages for attributes using the
|
||||
| convention "attribute.rule" to name the lines. This makes it quick to
|
||||
| specify a specific custom language line for a given attribute rule.
|
||||
|
|
||||
*/
|
||||
|
||||
'custom' => [
|
||||
'attribute-name' => [
|
||||
'rule-name' => 'custom-message',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Attributes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used to swap attribute place-holders
|
||||
| with something more reader friendly such as E-Mail Address instead
|
||||
| of "email". This simply helps us make messages a little cleaner.
|
||||
|
|
||||
*/
|
||||
|
||||
'attributes' => [
|
||||
//
|
||||
],
|
||||
|
||||
];
|
@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pagination Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used by the paginator library to build
|
||||
| the simple pagination links. You are free to change them to anything
|
||||
| you want to customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'previous' => '« Forrige',
|
||||
|
||||
'next' => 'Næste »',
|
||||
|
||||
);
|
@ -1,26 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reminder Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are the default lines which match reasons
|
||||
| that are given by the password broker for a password update attempt
|
||||
| has failed, such as for an invalid token or invalid new password.
|
||||
|
|
||||
*/
|
||||
|
||||
"password" => "Passwords skal minimum være 6 tegn og matche sikkerhedstjekket.",
|
||||
|
||||
"user" => "Vi kan ikke finde en bruger med den email-adresse.",
|
||||
|
||||
"token" => "Password-nulstillingskoden er ugyldig.",
|
||||
|
||||
"sent" => "Password-påmindelse sendt!",
|
||||
|
||||
"reset" => "Password has been reset!",
|
||||
|
||||
);
|
File diff suppressed because it is too large
Load Diff
@ -1,114 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines contain the default error messages used by
|
||||
| the validator class. Some of these rules have multiple versions such
|
||||
| such as the size rules. Feel free to tweak each of these messages.
|
||||
|
|
||||
*/
|
||||
|
||||
"accepted" => ":attribute skal accepteres.",
|
||||
"active_url" => ":attribute er ikke en valid URL.",
|
||||
"after" => ":attribute skal være en dato efter :date.",
|
||||
"alpha" => ":attribute må kun bestå af bogstaver.",
|
||||
"alpha_dash" => ":attribute må kun bestå af bogstaver, tal og bindestreger.",
|
||||
"alpha_num" => ":attribute må kun bestå af bogstaver og tal.",
|
||||
"array" => ":attribute skal være et array.",
|
||||
"before" => ":attribute skal være en dato før :date.",
|
||||
"between" => array(
|
||||
"numeric" => ":attribute skal være imellem :min - :max.",
|
||||
"file" => ":attribute skal være imellem :min - :max kilobytes.",
|
||||
"string" => ":attribute skal være imellem :min - :max tegn.",
|
||||
"array" => ":attribute skal indeholde mellem :min - :max elementer.",
|
||||
),
|
||||
"boolean" => ":attribute skal være sandt eller falsk",
|
||||
"confirmed" => ":attribute er ikke det samme som bekræftelsesfeltet.",
|
||||
"date" => ":attribute er ikke en gyldig dato.",
|
||||
"date_format" => ":attribute matcher ikke formatet :format.",
|
||||
"different" => ":attribute og :other skal være forskellige.",
|
||||
"digits" => ":attribute skal have :digits cifre.",
|
||||
"digits_between" => ":attribute skal have mellem :min og :max cifre.",
|
||||
"email" => ":attribute skal være en gyldig e-mailadresse.",
|
||||
"exists" => "Det valgte :attribute er ugyldig.",
|
||||
"image" => ":attribute skal være et billede.",
|
||||
"in" => "Det valgte :attribute er ugyldig.",
|
||||
"integer" => ":attribute skal være et heltal.",
|
||||
"ip" => ":attribute skal være en gyldig IP adresse.",
|
||||
"max" => array(
|
||||
"numeric" => ":attribute skal være højest :max.",
|
||||
"file" => ":attribute skal være højest :max kilobytes.",
|
||||
"string" => ":attribute skal være højest :max tegn.",
|
||||
"array" => ":attribute må ikke indeholde mere end :max elementer.",
|
||||
),
|
||||
"mimes" => ":attribute skal være en fil af typen: :values.",
|
||||
"min" => array(
|
||||
"numeric" => ":attribute skal være mindst :min.",
|
||||
"file" => ":attribute skal være mindst :min kilobytes.",
|
||||
"string" => ":attribute skal være mindst :min tegn.",
|
||||
"array" => ":attribute skal indeholde mindst :min elementer.",
|
||||
),
|
||||
"not_in" => "Den valgte :attribute er ugyldig.",
|
||||
"numeric" => ":attribute skal være et tal.",
|
||||
"regex" => ":attribute formatet er ugyldigt.",
|
||||
"required" => ":attribute skal udfyldes.",
|
||||
"required_if" => ":attribute skal udfyldes når :other er :value.",
|
||||
"required_with" => ":attribute skal udfyldes når :values er udfyldt.",
|
||||
"required_with_all" => ":attribute skal udfyldes når :values er udfyldt.",
|
||||
"required_without" => ":attribute skal udfyldes når :values ikke er udfyldt.",
|
||||
"required_without_all" => ":attribute skal udfyldes når ingen af :values er udfyldt.",
|
||||
"same" => ":attribute og :other skal være ens.",
|
||||
"size" => array(
|
||||
"numeric" => ":attribute skal være :size.",
|
||||
"file" => ":attribute skal være :size kilobytes.",
|
||||
"string" => ":attribute skal være :size tegn lang.",
|
||||
"array" => ":attribute skal indeholde :size elementer.",
|
||||
),
|
||||
"timezone" => "The :attribute must be a valid zone.",
|
||||
"unique" => ":attribute er allerede taget.",
|
||||
"url" => ":attribute formatet er ugyldigt.",
|
||||
|
||||
"positive" => "The :attribute must be greater than zero.",
|
||||
"has_credit" => "The client does not have enough credit.",
|
||||
"notmasked" => "The values are masked",
|
||||
"less_than" => 'The :attribute must be less than :value',
|
||||
"has_counter" => 'The value must contain {$counter}',
|
||||
"valid_contacts" => "All of the contacts must have either an email or name",
|
||||
"valid_invoice_items" => "The invoice exceeds the maximum amount",
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify custom validation messages for attributes using the
|
||||
| convention "attribute.rule" to name the lines. This makes it quick to
|
||||
| specify a specific custom language line for a given attribute rule.
|
||||
|
|
||||
*/
|
||||
|
||||
'custom' => array(
|
||||
'attribute-name' => array(
|
||||
'rule-name' => 'custom-message',
|
||||
),
|
||||
),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Attributes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used to swap attribute place-holders
|
||||
| with something more reader friendly such as E-Mail Address instead
|
||||
| of "email". This simply helps us make messages a little cleaner.
|
||||
|
|
||||
*/
|
||||
|
||||
'attributes' => array(),
|
||||
|
||||
);
|
@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pagination Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used by the paginator library to build
|
||||
| the simple pagination links. You are free to change them to anything
|
||||
| you want to customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'previous' => '« zurück',
|
||||
|
||||
'next' => 'weiter »',
|
||||
|
||||
);
|
@ -1,22 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reminder Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are the default lines which match reasons
|
||||
| that are given by the password broker for a password update attempt
|
||||
| has failed, such as for an invalid token or invalid new password.
|
||||
|
|
||||
*/
|
||||
|
||||
"password" => "Beide Passwörter müssen übereinstimmen und mindestens 6 Zeichen lang sein.",
|
||||
"user" => "Wir können keinen Nutzer mit dieser E-Mail Adresse finden.",
|
||||
"token" => "Der Code zum Zurücksetzen des Passworts ist ungültig oder abgelaufen.",
|
||||
"sent" => "Es wurde soeben eine E-Mail verschickt, die einen Link zum Zurücksetzen des Passworts enthält!",
|
||||
"reset" => "Das Passwort wurde zurückgesetzt!",
|
||||
|
||||
];
|
@ -1,24 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reminder Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are the default lines which match reasons
|
||||
| that are given by the password broker for a password update attempt
|
||||
| has failed, such as for an invalid token or invalid new password.
|
||||
|
|
||||
*/
|
||||
|
||||
"password" => "Passwörter müssen 6 Zeichen lang sein und korrekt bestätigt werden.",
|
||||
|
||||
"user" => "Wir konnten leider keinen Nutzer mit dieser E-Mail Adresse finden.",
|
||||
|
||||
"token" => "Der Passwort-Wiederherstellungs-Schlüssel ist ungültig.",
|
||||
|
||||
"sent" => "Passworterinnerung wurde versendet!",
|
||||
|
||||
);
|
File diff suppressed because it is too large
Load Diff
@ -1,112 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines contain the default error messages used by
|
||||
| the validator class. Some of these rules have multiple versions such
|
||||
| such as the size rules. Feel free to tweak each of these messages.
|
||||
|
|
||||
*/
|
||||
|
||||
"accepted" => ":attribute muss akzeptiert werden.",
|
||||
"active_url" => ":attribute ist keine gültige Internet-Adresse.",
|
||||
"after" => ":attribute muss ein Datum nach dem :date sein.",
|
||||
"alpha" => ":attribute darf nur aus Buchstaben bestehen.",
|
||||
"alpha_dash" => ":attribute darf nur aus Buchstaben, Zahlen, Binde- und Unterstrichen bestehen. Umlaute (ä, ö, ü) und Eszett (ß) sind nicht erlaubt.",
|
||||
"alpha_num" => ":attribute darf nur aus Buchstaben und Zahlen bestehen.",
|
||||
"array" => ":attribute muss ein Array sein.",
|
||||
"before" => ":attribute muss ein Datum vor dem :date sein.",
|
||||
"between" => array(
|
||||
"numeric" => ":attribute muss zwischen :min & :max liegen.",
|
||||
"file" => ":attribute muss zwischen :min & :max Kilobytes groß sein.",
|
||||
"string" => ":attribute muss zwischen :min & :max Zeichen lang sein.",
|
||||
"array" => ":attribute muss zwischen :min & :max Elemente haben.",
|
||||
),
|
||||
"confirmed" => ":attribute stimmt nicht mit der Bestätigung überein.",
|
||||
"date" => ":attribute muss ein gültiges Datum sein.",
|
||||
"date_format" => ":attribute entspricht nicht dem gültigen Format für :format.",
|
||||
"different" => ":attribute und :other müssen sich unterscheiden.",
|
||||
"digits" => ":attribute muss :digits Stellen haben.",
|
||||
"digits_between" => ":attribute muss zwischen :min und :max Stellen haben.",
|
||||
"email" => ":attribute Format ist ungültig.",
|
||||
"exists" => "Der gewählte Wert für :attribute ist ungültig.",
|
||||
"image" => ":attribute muss ein Bild sein.",
|
||||
"in" => "Der gewählte Wert für :attribute ist ungültig.",
|
||||
"integer" => ":attribute muss eine ganze Zahl sein.",
|
||||
"ip" => ":attribute muss eine gültige IP-Adresse sein.",
|
||||
"max" => array(
|
||||
"numeric" => ":attribute darf maximal :max sein.",
|
||||
"file" => ":attribute darf maximal :max Kilobytes groß sein.",
|
||||
"string" => ":attribute darf maximal :max Zeichen haben.",
|
||||
"array" => ":attribute darf nicht mehr als :max Elemente haben.",
|
||||
),
|
||||
"mimes" => ":attribute muss den Dateityp :values haben.",
|
||||
"min" => array(
|
||||
"numeric" => ":attribute muss mindestens :min sein.",
|
||||
"file" => ":attribute muss mindestens :min Kilobytes groß sein.",
|
||||
"string" => ":attribute muss mindestens :min Zeichen lang sein.",
|
||||
"array" => ":attribute muss mindestens :min Elemente haben.",
|
||||
),
|
||||
"not_in" => "Der gewählte Wert für :attribute ist ungültig.",
|
||||
"numeric" => ":attribute muss eine Zahl sein.",
|
||||
"regex" => ":attribute Format ist ungültig.",
|
||||
"required" => ":attribute muss ausgefüllt sein.",
|
||||
"required_if" => ":attribute muss ausgefüllt sein wenn :other :value ist.",
|
||||
"required_with" => ":attribute muss angegeben werden wenn :values ausgefüllt wurde.",
|
||||
"required_with_all" => ":attribute muss ausgefüllt werden, wenn :values vorhanden ist.",
|
||||
"required_without" => ":attribute muss angegeben werden wenn :values nicht ausgefüllt wurde.",
|
||||
"required_without_all" => ":attribute muss angegeben werden wenn keines der Felder :values ausgefüllt wurde.",
|
||||
"same" => ":attribute und :other müssen übereinstimmen.",
|
||||
"size" => array(
|
||||
"numeric" => ":attribute muss gleich :size sein.",
|
||||
"file" => ":attribute muss :size Kilobyte groß sein.",
|
||||
"string" => ":attribute muss :size Zeichen lang sein.",
|
||||
"array" => ":attribute muss genau :size Elemente haben.",
|
||||
),
|
||||
"unique" => ":attribute ist schon vergeben.",
|
||||
"url" => "Das Format von :attribute ist ungültig.",
|
||||
|
||||
"positive" => ":attribute muss größer als null sein.",
|
||||
"has_credit" => "Der Kunde hat nicht genug Guthaben.",
|
||||
"notmasked" => "Die Werte sind maskiert",
|
||||
"less_than" => ':attribute muss weniger als :value sein',
|
||||
"has_counter" => 'Der Wert muss {$counter} beinhalten',
|
||||
"valid_contacts" => "Alle Kontakte müssen entweder einen Namen oder eine E-Mail Adresse haben",
|
||||
"valid_invoice_items" => "Die Rechnung übersteigt den maximalen Betrag",
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify custom validation messages for attributes using the
|
||||
| convention "attribute.rule" to name the lines. This makes it quick to
|
||||
| specify a specific custom language line for a given attribute rule.
|
||||
|
|
||||
*/
|
||||
|
||||
'custom' => array(
|
||||
'attribute-name' => array(
|
||||
'rule-name' => 'custom-message',
|
||||
),
|
||||
),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Attributes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used to swap attribute place-holders
|
||||
| with something more reader friendly such as E-Mail Address instead
|
||||
| of "email". This simply helps us make messages a little cleaner.
|
||||
|
|
||||
*/
|
||||
|
||||
'attributes' => array(),
|
||||
|
||||
);
|
@ -1,19 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Authentication Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used during authentication for various
|
||||
| messages that we need to display to the user. You are free to modify
|
||||
| these language lines according to your application's requirements.
|
||||
|
|
||||
*/
|
||||
|
||||
'failed' => 'Τα στοιχεία αυτά δεν ταιριάζουν με τα δικά μας.',
|
||||
'throttle' => 'Πολλές προσπάθειες σύνδεσης. Παρακαλώ δοκιμάστε ξανά σε :seconds δευτερόλεπτα.',
|
||||
|
||||
];
|
@ -1,19 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pagination Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used by the paginator library to build
|
||||
| the simple pagination links. You are free to change them to anything
|
||||
| you want to customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'previous' => '« Προηγούμενη',
|
||||
'next' => 'Επόμενη »',
|
||||
|
||||
];
|
@ -1,22 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reminder Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are the default lines which match reasons
|
||||
| that are given by the password broker for a password update attempt
|
||||
| has failed, such as for an invalid token or invalid new password.
|
||||
|
|
||||
*/
|
||||
|
||||
'password' => 'Το συνθηματικό πρέπει να έχει τουλάχιστον έξι χαρακτήρες και να ταιριάζει με την επαλήθευση.',
|
||||
'reset' => 'Έχει γίνει επαναφορά του συνθηματικού!',
|
||||
'sent' => 'Η υπενθύμιση του συνθηματικού εστάλη!',
|
||||
'token' => 'Το κλειδί αρχικοποίησης του συνθηματικού δεν είναι έγκυρο.',
|
||||
'user' => 'Δεν βρέθηκε χρήστης με το συγκεκριμένο email.',
|
||||
|
||||
];
|
File diff suppressed because it is too large
Load Diff
@ -1,121 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines contain the default error messages used by
|
||||
| the validator class. Some of these rules have multiple versions such
|
||||
| as the size rules. Feel free to tweak each of these messages here.
|
||||
|
|
||||
*/
|
||||
|
||||
'accepted' => 'Το πεδίο :attribute πρέπει να γίνει αποδεκτό.',
|
||||
'active_url' => 'Το πεδίο :attribute δεν είναι αποδεκτή διεύθυνση URL.',
|
||||
'after' => 'Το πεδίο :attribute πρέπει να είναι μία ημερομηνία μετά από :date.',
|
||||
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
|
||||
'alpha' => 'Το πεδίο :attribute μπορεί να περιέχει μόνο γράμματα.',
|
||||
'alpha_dash' => 'Το πεδίο :attribute μπορεί να περιέχει μόνο γράμματα, αριθμούς, και παύλες.',
|
||||
'alpha_num' => 'Το πεδίο :attribute μπορεί να περιέχει μόνο γράμματα και αριθμούς.',
|
||||
'array' => 'Το πεδίο :attribute πρέπει να είναι ένας πίνακας.',
|
||||
'before' => 'Το πεδίο :attribute πρέπει να είναι μία ημερομηνία πριν από :date.',
|
||||
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
|
||||
'between' => [
|
||||
'numeric' => 'Το πεδίο :attribute πρέπει να είναι μεταξύ :min - :max.',
|
||||
'file' => 'Το πεδίο :attribute πρέπει να είναι μεταξύ :min - :max kilobytes.',
|
||||
'string' => 'Το πεδίο :attribute πρέπει να είναι μεταξύ :min - :max χαρακτήρες.',
|
||||
'array' => 'Το πεδίο :attribute πρέπει να έχει μεταξύ :min - :max αντικείμενα.',
|
||||
],
|
||||
'boolean' => 'Το πεδίο :attribute πρέπει να είναι true ή false.',
|
||||
'confirmed' => 'Η επιβεβαίωση του :attribute δεν ταιριάζει.',
|
||||
'date' => 'Το πεδίο :attribute δεν είναι έγκυρη ημερομηνία.',
|
||||
'date_format' => 'Το πεδίο :attribute δεν είναι της μορφής :format.',
|
||||
'different' => 'Το πεδίο :attribute και :other πρέπει να είναι διαφορετικά.',
|
||||
'digits' => 'Το πεδίο :attribute πρέπει να είναι :digits ψηφία.',
|
||||
'digits_between' => 'Το πεδίο :attribute πρέπει να είναι μεταξύ :min και :max ψηφία.',
|
||||
'dimensions' => 'The :attribute has invalid image dimensions.',
|
||||
'distinct' => 'The :attribute field has a duplicate value.',
|
||||
'email' => 'Το πεδίο :attribute πρέπει να είναι μία έγκυρη διεύθυνση email.',
|
||||
'file' => 'The :attribute must be a file.',
|
||||
'filled' => 'To πεδίο :attribute είναι απαραίτητο.',
|
||||
'exists' => 'Το επιλεγμένο :attribute δεν είναι έγκυρο.',
|
||||
'image' => 'Το πεδίο :attribute πρέπει να είναι εικόνα.',
|
||||
'in' => 'Το επιλεγμένο :attribute δεν είναι έγκυρο.',
|
||||
'in_array' => 'The :attribute field does not exist in :other.',
|
||||
'integer' => 'Το πεδίο :attribute πρέπει να είναι ακέραιος.',
|
||||
'ip' => 'Το πεδίο :attribute πρέπει να είναι μία έγκυρη διεύθυνση IP.',
|
||||
'json' => 'Το πεδίο :attribute πρέπει να είναι μία έγκυρη συμβολοσειρά JSON.',
|
||||
'max' => [
|
||||
'numeric' => 'Το πεδίο :attribute δεν μπορεί να είναι μεγαλύτερο από :max.',
|
||||
'file' => 'Το πεδίο :attribute δεν μπορεί να είναι μεγαλύτερό :max kilobytes.',
|
||||
'string' => 'Το πεδίο :attribute δεν μπορεί να έχει περισσότερους από :max χαρακτήρες.',
|
||||
'array' => 'Το πεδίο :attribute δεν μπορεί να έχει περισσότερα από :max αντικείμενα.',
|
||||
],
|
||||
'mimes' => 'Το πεδίο :attribute πρέπει να είναι αρχείο τύπου: :values.',
|
||||
'mimetypes' => 'Το πεδίο :attribute πρέπει να είναι αρχείο τύπου: :values.',
|
||||
'min' => [
|
||||
'numeric' => 'Το πεδίο :attribute πρέπει να είναι τουλάχιστον :min.',
|
||||
'file' => 'Το πεδίο :attribute πρέπει να είναι τουλάχιστον :min kilobytes.',
|
||||
'string' => 'Το πεδίο :attribute πρέπει να έχει τουλάχιστον :min χαρακτήρες.',
|
||||
'array' => 'Το πεδίο :attribute πρέπει να έχει τουλάχιστον :min αντικείμενα.',
|
||||
],
|
||||
'not_in' => 'Το επιλεγμένο :attribute δεν είναι αποδεκτό.',
|
||||
'numeric' => 'Το πεδίο :attribute πρέπει να είναι αριθμός.',
|
||||
'present' => 'The :attribute field must be present.',
|
||||
'regex' => 'Η μορφή του :attribute δεν είναι αποδεκτή.',
|
||||
'required' => 'Το πεδίο :attribute είναι απαραίτητο.',
|
||||
'required_if' => 'Το πεδίο :attribute είναι απαραίτητο όταν το πεδίο :other είναι :value.',
|
||||
'required_unless' => 'Το πεδίο :attribute είναι απαραίτητο εκτός αν το πεδίο :other εμπεριέχει :values.',
|
||||
'required_with' => 'Το πεδίο :attribute είναι απαραίτητο όταν υπάρχει :values.',
|
||||
'required_with_all' => 'Το πεδίο :attribute είναι απαραίτητο όταν υπάρχουν :values.',
|
||||
'required_without' => 'Το πεδίο :attribute είναι απαραίτητο όταν δεν υπάρχει :values.',
|
||||
'required_without_all' => 'Το πεδίο :attribute είναι απαραίτητο όταν δεν υπάρχει κανένα από :values.',
|
||||
'same' => 'Τα πεδία :attribute και :other πρέπει να είναι ίδια.',
|
||||
'size' => [
|
||||
'numeric' => 'Το πεδίο :attribute πρέπει να είναι :size.',
|
||||
'file' => 'Το πεδίο :attribute πρέπει να είναι :size kilobytes.',
|
||||
'string' => 'Το πεδίο :attribute πρέπει να είναι :size χαρακτήρες.',
|
||||
'array' => 'Το πεδίο :attribute πρέπει να περιέχει :size αντικείμενα.',
|
||||
],
|
||||
'string' => 'Το πεδίο :attribute πρέπει να είναι αλφαριθμητικό.',
|
||||
'timezone' => 'Το πεδίο :attribute πρέπει να είναι μία έγκυρη ζώνη ώρας.',
|
||||
'unique' => 'Το πεδίο :attribute έχει ήδη εκχωρηθεί.',
|
||||
'uploaded' => 'The :attribute failed to upload.',
|
||||
'url' => 'Το πεδίο :attribute δεν είναι έγκυρη διεύθυνση URL.',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify custom validation messages for attributes using the
|
||||
| convention "attribute.rule" to name the lines. This makes it quick to
|
||||
| specify a specific custom language line for a given attribute rule.
|
||||
|
|
||||
*/
|
||||
|
||||
'custom' => [
|
||||
'attribute-name' => [
|
||||
'rule-name' => 'custom-message',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Attributes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used to swap attribute place-holders
|
||||
| with something more reader friendly such as E-Mail Address instead
|
||||
| of "email". This simply helps us make messages a little cleaner.
|
||||
|
|
||||
*/
|
||||
|
||||
'attributes' => [
|
||||
//
|
||||
],
|
||||
|
||||
];
|
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Authentication Language Lines
|
||||
@ -12,6 +13,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'failed' => 'These credentials do not match our records.',
|
||||
'failed' => 'These credentials do not match our records.',
|
||||
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
|
||||
|
||||
];
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@ -13,8 +13,7 @@ return array(
|
||||
|
|
||||
*/
|
||||
|
||||
'previous' => '« Previous',
|
||||
'previous' => '« Previous',
|
||||
'next' => 'Next »',
|
||||
|
||||
'next' => 'Next »',
|
||||
|
||||
);
|
||||
];
|
||||
|
@ -4,7 +4,7 @@ return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reminder Language Lines
|
||||
| Password Reset Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are the default lines which match reasons
|
||||
@ -13,10 +13,10 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
"password" => "Passwords must be at least six characters and match the confirmation.",
|
||||
"user" => "We can't find a user with that e-mail address.",
|
||||
"token" => "This password reset token is invalid.",
|
||||
"sent" => "We have e-mailed your password reset link!",
|
||||
"reset" => "Your password has been reset!",
|
||||
'password' => 'Passwords must be at least six characters and match the confirmation.',
|
||||
'reset' => 'Your password has been reset!',
|
||||
'sent' => 'We have e-mailed your password reset link!',
|
||||
'token' => 'This password reset token is invalid.',
|
||||
'user' => "We can't find a user with that e-mail address.",
|
||||
|
||||
];
|
||||
|
@ -1,24 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reminder Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are the default lines which match reasons
|
||||
| that are given by the password broker for a password update attempt
|
||||
| has failed, such as for an invalid token or invalid new password.
|
||||
|
|
||||
*/
|
||||
|
||||
"password" => "Passwords must be at least six characters and match the confirmation.",
|
||||
|
||||
"user" => "We can't find a user with that e-mail address.",
|
||||
|
||||
"token" => "This password reset token is invalid.",
|
||||
|
||||
"sent" => "Password reminder sent!",
|
||||
|
||||
);
|
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@ -9,74 +9,109 @@ return array(
|
||||
|
|
||||
| The following language lines contain the default error messages used by
|
||||
| the validator class. Some of these rules have multiple versions such
|
||||
| such as the size rules. Feel free to tweak each of these messages.
|
||||
| as the size rules. Feel free to tweak each of these messages here.
|
||||
|
|
||||
*/
|
||||
|
||||
"accepted" => "The :attribute must be accepted.",
|
||||
"active_url" => "The :attribute is not a valid URL.",
|
||||
"after" => "The :attribute must be a date after :date.",
|
||||
"alpha" => "The :attribute may only contain letters.",
|
||||
"alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.",
|
||||
"alpha_num" => "The :attribute may only contain letters and numbers.",
|
||||
"array" => "The :attribute must be an array.",
|
||||
"before" => "The :attribute must be a date before :date.",
|
||||
"between" => array(
|
||||
"numeric" => "The :attribute must be between :min - :max.",
|
||||
"file" => "The :attribute must be between :min - :max kilobytes.",
|
||||
"string" => "The :attribute must be between :min - :max characters.",
|
||||
"array" => "The :attribute must have between :min - :max items.",
|
||||
),
|
||||
"confirmed" => "The :attribute confirmation does not match.",
|
||||
"date" => "The :attribute is not a valid date.",
|
||||
"date_format" => "The :attribute does not match the format :format.",
|
||||
"different" => "The :attribute and :other must be different.",
|
||||
"digits" => "The :attribute must be :digits digits.",
|
||||
"digits_between" => "The :attribute must be between :min and :max digits.",
|
||||
"email" => "The :attribute format is invalid.",
|
||||
"exists" => "The selected :attribute is invalid.",
|
||||
"image" => "The :attribute must be an image.",
|
||||
"in" => "The selected :attribute is invalid.",
|
||||
"integer" => "The :attribute must be an integer.",
|
||||
"ip" => "The :attribute must be a valid IP address.",
|
||||
"max" => array(
|
||||
"numeric" => "The :attribute may not be greater than :max.",
|
||||
"file" => "The :attribute may not be greater than :max kilobytes.",
|
||||
"string" => "The :attribute may not be greater than :max characters.",
|
||||
"array" => "The :attribute may not have more than :max items.",
|
||||
),
|
||||
"mimes" => "The :attribute must be a file of type: :values.",
|
||||
"min" => array(
|
||||
"numeric" => "The :attribute must be at least :min.",
|
||||
"file" => "The :attribute must be at least :min kilobytes.",
|
||||
"string" => "The :attribute must be at least :min characters.",
|
||||
"array" => "The :attribute must have at least :min items.",
|
||||
),
|
||||
"not_in" => "The selected :attribute is invalid.",
|
||||
"numeric" => "The :attribute must be a number.",
|
||||
"regex" => "The :attribute format is invalid.",
|
||||
"required" => "The :attribute field is required.",
|
||||
"required_if" => "The :attribute field is required when :other is :value.",
|
||||
"required_with" => "The :attribute field is required when :values is present.",
|
||||
"required_without" => "The :attribute field is required when :values is not present.",
|
||||
"same" => "The :attribute and :other must match.",
|
||||
"size" => array(
|
||||
"numeric" => "The :attribute must be :size.",
|
||||
"file" => "The :attribute must be :size kilobytes.",
|
||||
"string" => "The :attribute must be :size characters.",
|
||||
"array" => "The :attribute must contain :size items.",
|
||||
),
|
||||
"unique" => "The :attribute has already been taken.",
|
||||
"url" => "The :attribute format is invalid.",
|
||||
|
||||
"positive" => "The :attribute must be greater than zero.",
|
||||
"has_credit" => "The client does not have enough credit.",
|
||||
"notmasked" => "The values are masked",
|
||||
"less_than" => "The :attribute must be less than :value",
|
||||
"has_counter" => "To ensure all invoice numbers are unique the pattern needs to contain either {\$counter} or {\$clientIdNumber} and {\$clientCounter}",
|
||||
"valid_contacts" => "The contact must have either an email or name",
|
||||
"valid_invoice_items" => "The invoice exceeds the maximum amount",
|
||||
"valid_subdomain" => "The subdomain is restricted",
|
||||
'accepted' => 'The :attribute must be accepted.',
|
||||
'active_url' => 'The :attribute is not a valid URL.',
|
||||
'after' => 'The :attribute must be a date after :date.',
|
||||
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
|
||||
'alpha' => 'The :attribute may only contain letters.',
|
||||
'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.',
|
||||
'alpha_num' => 'The :attribute may only contain letters and numbers.',
|
||||
'array' => 'The :attribute must be an array.',
|
||||
'before' => 'The :attribute must be a date before :date.',
|
||||
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
|
||||
'between' => [
|
||||
'numeric' => 'The :attribute must be between :min and :max.',
|
||||
'file' => 'The :attribute must be between :min and :max kilobytes.',
|
||||
'string' => 'The :attribute must be between :min and :max characters.',
|
||||
'array' => 'The :attribute must have between :min and :max items.',
|
||||
],
|
||||
'boolean' => 'The :attribute field must be true or false.',
|
||||
'confirmed' => 'The :attribute confirmation does not match.',
|
||||
'date' => 'The :attribute is not a valid date.',
|
||||
'date_format' => 'The :attribute does not match the format :format.',
|
||||
'different' => 'The :attribute and :other must be different.',
|
||||
'digits' => 'The :attribute must be :digits digits.',
|
||||
'digits_between' => 'The :attribute must be between :min and :max digits.',
|
||||
'dimensions' => 'The :attribute has invalid image dimensions.',
|
||||
'distinct' => 'The :attribute field has a duplicate value.',
|
||||
'email' => 'The :attribute must be a valid email address.',
|
||||
'exists' => 'The selected :attribute is invalid.',
|
||||
'file' => 'The :attribute must be a file.',
|
||||
'filled' => 'The :attribute field must have a value.',
|
||||
'gt' => [
|
||||
'numeric' => 'The :attribute must be greater than :value.',
|
||||
'file' => 'The :attribute must be greater than :value kilobytes.',
|
||||
'string' => 'The :attribute must be greater than :value characters.',
|
||||
'array' => 'The :attribute must have more than :value items.',
|
||||
],
|
||||
'gte' => [
|
||||
'numeric' => 'The :attribute must be greater than or equal :value.',
|
||||
'file' => 'The :attribute must be greater than or equal :value kilobytes.',
|
||||
'string' => 'The :attribute must be greater than or equal :value characters.',
|
||||
'array' => 'The :attribute must have :value items or more.',
|
||||
],
|
||||
'image' => 'The :attribute must be an image.',
|
||||
'in' => 'The selected :attribute is invalid.',
|
||||
'in_array' => 'The :attribute field does not exist in :other.',
|
||||
'integer' => 'The :attribute must be an integer.',
|
||||
'ip' => 'The :attribute must be a valid IP address.',
|
||||
'ipv4' => 'The :attribute must be a valid IPv4 address.',
|
||||
'ipv6' => 'The :attribute must be a valid IPv6 address.',
|
||||
'json' => 'The :attribute must be a valid JSON string.',
|
||||
'lt' => [
|
||||
'numeric' => 'The :attribute must be less than :value.',
|
||||
'file' => 'The :attribute must be less than :value kilobytes.',
|
||||
'string' => 'The :attribute must be less than :value characters.',
|
||||
'array' => 'The :attribute must have less than :value items.',
|
||||
],
|
||||
'lte' => [
|
||||
'numeric' => 'The :attribute must be less than or equal :value.',
|
||||
'file' => 'The :attribute must be less than or equal :value kilobytes.',
|
||||
'string' => 'The :attribute must be less than or equal :value characters.',
|
||||
'array' => 'The :attribute must not have more than :value items.',
|
||||
],
|
||||
'max' => [
|
||||
'numeric' => 'The :attribute may not be greater than :max.',
|
||||
'file' => 'The :attribute may not be greater than :max kilobytes.',
|
||||
'string' => 'The :attribute may not be greater than :max characters.',
|
||||
'array' => 'The :attribute may not have more than :max items.',
|
||||
],
|
||||
'mimes' => 'The :attribute must be a file of type: :values.',
|
||||
'mimetypes' => 'The :attribute must be a file of type: :values.',
|
||||
'min' => [
|
||||
'numeric' => 'The :attribute must be at least :min.',
|
||||
'file' => 'The :attribute must be at least :min kilobytes.',
|
||||
'string' => 'The :attribute must be at least :min characters.',
|
||||
'array' => 'The :attribute must have at least :min items.',
|
||||
],
|
||||
'not_in' => 'The selected :attribute is invalid.',
|
||||
'not_regex' => 'The :attribute format is invalid.',
|
||||
'numeric' => 'The :attribute must be a number.',
|
||||
'present' => 'The :attribute field must be present.',
|
||||
'regex' => 'The :attribute format is invalid.',
|
||||
'required' => 'The :attribute field is required.',
|
||||
'required_if' => 'The :attribute field is required when :other is :value.',
|
||||
'required_unless' => 'The :attribute field is required unless :other is in :values.',
|
||||
'required_with' => 'The :attribute field is required when :values is present.',
|
||||
'required_with_all' => 'The :attribute field is required when :values is present.',
|
||||
'required_without' => 'The :attribute field is required when :values is not present.',
|
||||
'required_without_all' => 'The :attribute field is required when none of :values are present.',
|
||||
'same' => 'The :attribute and :other must match.',
|
||||
'size' => [
|
||||
'numeric' => 'The :attribute must be :size.',
|
||||
'file' => 'The :attribute must be :size kilobytes.',
|
||||
'string' => 'The :attribute must be :size characters.',
|
||||
'array' => 'The :attribute must contain :size items.',
|
||||
],
|
||||
'string' => 'The :attribute must be a string.',
|
||||
'timezone' => 'The :attribute must be a valid zone.',
|
||||
'unique' => 'The :attribute has already been taken.',
|
||||
'uploaded' => 'The :attribute failed to upload.',
|
||||
'url' => 'The :attribute format is invalid.',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@ -89,7 +124,11 @@ return array(
|
||||
|
|
||||
*/
|
||||
|
||||
'custom' => array(),
|
||||
'custom' => [
|
||||
'attribute-name' => [
|
||||
'rule-name' => 'custom-message',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@ -102,6 +141,6 @@ return array(
|
||||
|
|
||||
*/
|
||||
|
||||
'attributes' => array(),
|
||||
'attributes' => [],
|
||||
|
||||
);
|
||||
];
|
||||
|
@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pagination Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used by the paginator library to build
|
||||
| the simple pagination links. You are free to change them to anything
|
||||
| you want to customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'previous' => '« Previous',
|
||||
|
||||
'next' => 'Next »',
|
||||
|
||||
);
|
@ -1,22 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reminder Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are the default lines which match reasons
|
||||
| that are given by the password broker for a password update attempt
|
||||
| has failed, such as for an invalid token or invalid new password.
|
||||
|
|
||||
*/
|
||||
|
||||
"password" => "Passwords must be at least six characters and match the confirmation.",
|
||||
"user" => "We can't find a user with that e-mail address.",
|
||||
"token" => "This password reset token is invalid.",
|
||||
"sent" => "We have e-mailed your password reset link!",
|
||||
"reset" => "Your password has been reset!",
|
||||
|
||||
];
|
@ -1,24 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reminder Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are the default lines which match reasons
|
||||
| that are given by the password broker for a password update attempt
|
||||
| has failed, such as for an invalid token or invalid new password.
|
||||
|
|
||||
*/
|
||||
|
||||
"password" => "Passwords must be at least six characters and match the confirmation.",
|
||||
|
||||
"user" => "We can't find a user with that e-mail address.",
|
||||
|
||||
"token" => "This password reset token is invalid.",
|
||||
|
||||
"sent" => "Password reminder sent!",
|
||||
|
||||
);
|
File diff suppressed because it is too large
Load Diff
@ -1,107 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines contain the default error messages used by
|
||||
| the validator class. Some of these rules have multiple versions such
|
||||
| such as the size rules. Feel free to tweak each of these messages.
|
||||
|
|
||||
*/
|
||||
|
||||
"accepted" => "The :attribute must be accepted.",
|
||||
"active_url" => "The :attribute is not a valid URL.",
|
||||
"after" => "The :attribute must be a date after :date.",
|
||||
"alpha" => "The :attribute may only contain letters.",
|
||||
"alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.",
|
||||
"alpha_num" => "The :attribute may only contain letters and numbers.",
|
||||
"array" => "The :attribute must be an array.",
|
||||
"before" => "The :attribute must be a date before :date.",
|
||||
"between" => array(
|
||||
"numeric" => "The :attribute must be between :min - :max.",
|
||||
"file" => "The :attribute must be between :min - :max kilobytes.",
|
||||
"string" => "The :attribute must be between :min - :max characters.",
|
||||
"array" => "The :attribute must have between :min - :max items.",
|
||||
),
|
||||
"confirmed" => "The :attribute confirmation does not match.",
|
||||
"date" => "The :attribute is not a valid date.",
|
||||
"date_format" => "The :attribute does not match the format :format.",
|
||||
"different" => "The :attribute and :other must be different.",
|
||||
"digits" => "The :attribute must be :digits digits.",
|
||||
"digits_between" => "The :attribute must be between :min and :max digits.",
|
||||
"email" => "The :attribute format is invalid.",
|
||||
"exists" => "The selected :attribute is invalid.",
|
||||
"image" => "The :attribute must be an image.",
|
||||
"in" => "The selected :attribute is invalid.",
|
||||
"integer" => "The :attribute must be an integer.",
|
||||
"ip" => "The :attribute must be a valid IP address.",
|
||||
"max" => array(
|
||||
"numeric" => "The :attribute may not be greater than :max.",
|
||||
"file" => "The :attribute may not be greater than :max kilobytes.",
|
||||
"string" => "The :attribute may not be greater than :max characters.",
|
||||
"array" => "The :attribute may not have more than :max items.",
|
||||
),
|
||||
"mimes" => "The :attribute must be a file of type: :values.",
|
||||
"min" => array(
|
||||
"numeric" => "The :attribute must be at least :min.",
|
||||
"file" => "The :attribute must be at least :min kilobytes.",
|
||||
"string" => "The :attribute must be at least :min characters.",
|
||||
"array" => "The :attribute must have at least :min items.",
|
||||
),
|
||||
"not_in" => "The selected :attribute is invalid.",
|
||||
"numeric" => "The :attribute must be a number.",
|
||||
"regex" => "The :attribute format is invalid.",
|
||||
"required" => "The :attribute field is required.",
|
||||
"required_if" => "The :attribute field is required when :other is :value.",
|
||||
"required_with" => "The :attribute field is required when :values is present.",
|
||||
"required_without" => "The :attribute field is required when :values is not present.",
|
||||
"same" => "The :attribute and :other must match.",
|
||||
"size" => array(
|
||||
"numeric" => "The :attribute must be :size.",
|
||||
"file" => "The :attribute must be :size kilobytes.",
|
||||
"string" => "The :attribute must be :size characters.",
|
||||
"array" => "The :attribute must contain :size items.",
|
||||
),
|
||||
"unique" => "The :attribute has already been taken.",
|
||||
"url" => "The :attribute format is invalid.",
|
||||
|
||||
"positive" => "The :attribute must be greater than zero.",
|
||||
"has_credit" => "The client does not have enough credit.",
|
||||
"notmasked" => "The values are masked",
|
||||
"less_than" => "The :attribute must be less than :value",
|
||||
"has_counter" => "To ensure all invoice numbers are unique the pattern needs to contain either {\$counter} or {\$clientIdNumber} and {\$clientCounter}",
|
||||
"valid_contacts" => "The contact must have either an email or name",
|
||||
"valid_invoice_items" => "The invoice exceeds the maximum amount",
|
||||
"valid_subdomain" => "The subdomain is restricted",
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify custom validation messages for attributes using the
|
||||
| convention "attribute.rule" to name the lines. This makes it quick to
|
||||
| specify a specific custom language line for a given attribute rule.
|
||||
|
|
||||
*/
|
||||
|
||||
'custom' => array(),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Attributes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used to swap attribute place-holders
|
||||
| with something more reader friendly such as E-Mail Address instead
|
||||
| of "email". This simply helps us make messages a little cleaner.
|
||||
|
|
||||
*/
|
||||
|
||||
'attributes' => array(),
|
||||
|
||||
);
|
@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pagination Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used by the paginator library to build
|
||||
| the simple pagination links. You are free to change them to anything
|
||||
| you want to customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'previous' => '« Anterior',
|
||||
|
||||
'next' => 'Siguiente »',
|
||||
|
||||
);
|
@ -1,24 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reminder Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are the default lines which match reasons
|
||||
| that are given by the password broker for a password update attempt
|
||||
| has failed, such as for an invalid token or invalid new password.
|
||||
|
|
||||
*/
|
||||
|
||||
"password" => "Las contraseñas deben contener al menos 6 caracteres y coincidir.",
|
||||
|
||||
"user" => "No podemos encontrar a un usuario con ese correo electrónico.",
|
||||
|
||||
"token" => "Este token de recuperación de contraseña es inválido.",
|
||||
|
||||
"sent" => "¡Recordatorio de contraseña enviado!",
|
||||
|
||||
);
|
File diff suppressed because it is too large
Load Diff
@ -1,111 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines contain the default error messages used by
|
||||
| the validator class. Some of these rules have multiple versions such
|
||||
| such as the size rules. Feel free to tweak each of these messages.
|
||||
|
|
||||
*/
|
||||
|
||||
"accepted" => ":attribute debe ser aceptado.",
|
||||
"active_url" => ":attribute no es una URL válida.",
|
||||
"after" => ":attribute debe ser una fecha posterior a :date.",
|
||||
"alpha" => ":attribute solo debe contener letras.",
|
||||
"alpha_dash" => ":attribute solo debe contener letras, números y guiones.",
|
||||
"alpha_num" => ":attribute solo debe contener letras y números.",
|
||||
"array" => ":attribute debe ser un conjunto.",
|
||||
"before" => ":attribute debe ser una fecha anterior a :date.",
|
||||
"between" => array(
|
||||
"numeric" => ":attribute tiene que estar entre :min - :max.",
|
||||
"file" => ":attribute debe pesar entre :min - :max kilobytes.",
|
||||
"string" => ":attribute tiene que tener entre :min - :max caracteres.",
|
||||
"array" => ":attribute tiene que tener entre :min - :max ítems.",
|
||||
),
|
||||
"confirmed" => "La confirmación de :attribute no coincide.",
|
||||
"date" => ":attribute no es una fecha válida.",
|
||||
"date_format" => ":attribute no corresponde al formato :format.",
|
||||
"different" => ":attribute y :other deben ser diferentes.",
|
||||
"digits" => ":attribute debe tener :digits dígitos.",
|
||||
"digits_between" => ":attribute debe tener entre :min y :max dígitos.",
|
||||
"email" => ":attribute no es un correo válido",
|
||||
"exists" => ":attribute es inválido.",
|
||||
"image" => ":attribute debe ser una imagen.",
|
||||
"in" => ":attribute es inválido.",
|
||||
"integer" => ":attribute debe ser un número entero.",
|
||||
"ip" => ":attribute debe ser una dirección IP válida.",
|
||||
"max" => array(
|
||||
"numeric" => ":attribute no debe ser mayor a :max.",
|
||||
"file" => ":attribute no debe ser mayor que :max kilobytes.",
|
||||
"string" => ":attribute no debe ser mayor que :max caracteres.",
|
||||
"array" => ":attribute no debe tener más de :max elementos.",
|
||||
),
|
||||
"mimes" => ":attribute debe ser un archivo con formato: :values.",
|
||||
"min" => array(
|
||||
"numeric" => "El tamaño de :attribute debe ser de al menos :min.",
|
||||
"file" => "El tamaño de :attribute debe ser de al menos :min kilobytes.",
|
||||
"string" => ":attribute debe contener al menos :min caracteres.",
|
||||
"array" => ":attribute debe tener al menos :min elementos.",
|
||||
),
|
||||
"not_in" => ":attribute es inválido.",
|
||||
"numeric" => ":attribute debe ser numérico.",
|
||||
"regex" => "El formato de :attribute es inválido.",
|
||||
"required" => "El campo :attribute es obligatorio.",
|
||||
"required_if" => "El campo :attribute es obligatorio cuando :other es :value.",
|
||||
"required_with" => "El campo :attribute es obligatorio cuando :values está presente.",
|
||||
"required_with_all" => "The :attribute field is required when :values is present.",
|
||||
"required_without" => "El campo :attribute es obligatorio cuando :values no está presente.",
|
||||
"required_without_all" => "The :attribute field is required when none of :values are present.",
|
||||
"same" => ":attribute y :other deben coincidir.",
|
||||
"size" => array(
|
||||
"numeric" => "El tamaño de :attribute debe ser :size.",
|
||||
"file" => "El tamaño de :attribute debe ser :size kilobytes.",
|
||||
"string" => ":attribute debe contener :size caracteres.",
|
||||
"array" => ":attribute debe contener :size elementos.",
|
||||
),
|
||||
"unique" => ":attribute ya ha sido registrado.",
|
||||
"url" => "El formato :attribute es inválido.",
|
||||
"positive" => ":attribute debe ser mayor que cero.",
|
||||
"has_credit" => "el cliente no tiene crédito suficiente.",
|
||||
"notmasked" => "The values are masked",
|
||||
"less_than" => 'The :attribute must be less than :value',
|
||||
"has_counter" => 'The value must contain {$counter}',
|
||||
"valid_contacts" => "All of the contacts must have either an email or name",
|
||||
"valid_invoice_items" => "The invoice exceeds the maximum amount",
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify custom validation messages for attributes using the
|
||||
| convention "attribute.rule" to name the lines. This makes it quick to
|
||||
| specify a specific custom language line for a given attribute rule.
|
||||
|
|
||||
*/
|
||||
|
||||
'custom' => array(
|
||||
'attribute-name' => array(
|
||||
'rule-name' => 'custom-message',
|
||||
),
|
||||
),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Attributes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used to swap attribute place-holders
|
||||
| with something more reader friendly such as E-Mail Address instead
|
||||
| of "email". This simply helps us make messages a little cleaner.
|
||||
|
|
||||
*/
|
||||
|
||||
'attributes' => array(),
|
||||
|
||||
);
|
@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pagination Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used by the paginator library to build
|
||||
| the simple pagination links. You are free to change them to anything
|
||||
| you want to customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'previous' => '« Anterior',
|
||||
|
||||
'next' => 'Siguiente »',
|
||||
|
||||
);
|
@ -1,24 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reminder Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are the default lines which match reasons
|
||||
| that are given by the password broker for a password update attempt
|
||||
| has failed, such as for an invalid token or invalid new password.
|
||||
|
|
||||
*/
|
||||
|
||||
"password" => "Las contraseñas deben contener al menos 6 caracteres y coincidir.",
|
||||
|
||||
"user" => "No podemos encontrar a un usuario con ese correo electrónico.",
|
||||
|
||||
"token" => "Este token de recuperación de contraseña es inválido.",
|
||||
|
||||
"sent" => "¡Recordatorio de contraseña enviado!",
|
||||
|
||||
);
|
File diff suppressed because it is too large
Load Diff
@ -1,111 +0,0 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines contain the default error messages used by
|
||||
| the validator class. Some of these rules have multiple versions such
|
||||
| such as the size rules. Feel free to tweak each of these messages.
|
||||
|
|
||||
*/
|
||||
|
||||
"accepted" => ":attribute debe ser aceptado.",
|
||||
"active_url" => ":attribute no es una URL válida.",
|
||||
"after" => ":attribute debe ser una fecha posterior a :date.",
|
||||
"alpha" => ":attribute solo debe contener letras.",
|
||||
"alpha_dash" => ":attribute solo debe contener letras, números y guiones.",
|
||||
"alpha_num" => ":attribute solo debe contener letras y números.",
|
||||
"array" => ":attribute debe ser un conjunto.",
|
||||
"before" => ":attribute debe ser una fecha anterior a :date.",
|
||||
"between" => array(
|
||||
"numeric" => ":attribute tiene que estar entre :min - :max.",
|
||||
"file" => ":attribute debe pesar entre :min - :max kilobytes.",
|
||||
"string" => ":attribute tiene que tener entre :min - :max caracteres.",
|
||||
"array" => ":attribute tiene que tener entre :min - :max ítems.",
|
||||
),
|
||||
"confirmed" => "La confirmación de :attribute no coincide.",
|
||||
"date" => ":attribute no es una fecha válida.",
|
||||
"date_format" => ":attribute no corresponde al formato :format.",
|
||||
"different" => ":attribute y :other deben ser diferentes.",
|
||||
"digits" => ":attribute debe tener :digits dígitos.",
|
||||
"digits_between" => ":attribute debe tener entre :min y :max dígitos.",
|
||||
"email" => ":attribute no es un correo válido",
|
||||
"exists" => ":attribute es inválido.",
|
||||
"image" => ":attribute debe ser una imagen.",
|
||||
"in" => ":attribute es inválido.",
|
||||
"integer" => ":attribute debe ser un número entero.",
|
||||
"ip" => ":attribute debe ser una dirección IP válida.",
|
||||
"max" => array(
|
||||
"numeric" => ":attribute no debe ser mayor a :max.",
|
||||
"file" => ":attribute no debe ser mayor que :max kilobytes.",
|
||||
"string" => ":attribute no debe ser mayor que :max caracteres.",
|
||||
"array" => ":attribute no debe tener más de :max elementos.",
|
||||
),
|
||||
"mimes" => ":attribute debe ser un archivo con formato: :values.",
|
||||
"min" => array(
|
||||
"numeric" => "El tamaño de :attribute debe ser de al menos :min.",
|
||||
"file" => "El tamaño de :attribute debe ser de al menos :min kilobytes.",
|
||||
"string" => ":attribute debe contener al menos :min caracteres.",
|
||||
"array" => ":attribute debe tener al menos :min elementos.",
|
||||
),
|
||||
"not_in" => ":attribute es inválido.",
|
||||
"numeric" => ":attribute debe ser numérico.",
|
||||
"regex" => "El formato de :attribute es inválido.",
|
||||
"required" => "El campo :attribute es obligatorio.",
|
||||
"required_if" => "El campo :attribute es obligatorio cuando :other es :value.",
|
||||
"required_with" => "El campo :attribute es obligatorio cuando :values está presente.",
|
||||
"required_with_all" => "The :attribute field is required when :values is present.",
|
||||
"required_without" => "El campo :attribute es obligatorio cuando :values no está presente.",
|
||||
"required_without_all" => "The :attribute field is required when none of :values are present.",
|
||||
"same" => ":attribute y :other deben coincidir.",
|
||||
"size" => array(
|
||||
"numeric" => "El tamaño de :attribute debe ser :size.",
|
||||
"file" => "El tamaño de :attribute debe ser :size kilobytes.",
|
||||
"string" => ":attribute debe contener :size caracteres.",
|
||||
"array" => ":attribute debe contener :size elementos.",
|
||||
),
|
||||
"unique" => ":attribute ya ha sido registrado.",
|
||||
"url" => "El formato :attribute es inválido.",
|
||||
"positive" => ":attribute debe ser mayor que cero.",
|
||||
"has_credit" => "el cliente no tiene crédito suficiente.",
|
||||
"notmasked" => "The values are masked",
|
||||
"less_than" => 'The :attribute must be less than :value',
|
||||
"has_counter" => 'The value must contain {$counter}',
|
||||
"valid_contacts" => "All of the contacts must have either an email or name",
|
||||
"valid_invoice_items" => "The invoice exceeds the maximum amount",
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify custom validation messages for attributes using the
|
||||
| convention "attribute.rule" to name the lines. This makes it quick to
|
||||
| specify a specific custom language line for a given attribute rule.
|
||||
|
|
||||
*/
|
||||
|
||||
'custom' => array(
|
||||
'attribute-name' => array(
|
||||
'rule-name' => 'custom-message',
|
||||
),
|
||||
),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Attributes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used to swap attribute place-holders
|
||||
| with something more reader friendly such as E-Mail Address instead
|
||||
| of "email". This simply helps us make messages a little cleaner.
|
||||
|
|
||||
*/
|
||||
|
||||
'attributes' => array(),
|
||||
|
||||
);
|
@ -1,19 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Authentication Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used during authentication for various
|
||||
| messages that we need to display to the user. You are free to modify
|
||||
| these language lines according to your application's requirements.
|
||||
|
|
||||
*/
|
||||
|
||||
'failed' => 'Kirjautuminen epäonnistui.',
|
||||
'throttle' => 'Liian monta kirjautumisyritystä. Yritä uudelleen :seconds sekunnin kuluttua.',
|
||||
|
||||
];
|
@ -1,19 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Pagination Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used by the paginator library to build
|
||||
| the simple pagination links. You are free to change them to anything
|
||||
| you want to customize your views to better match your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'previous' => '« Edellinen',
|
||||
'next' => 'Seuraava »',
|
||||
|
||||
];
|
@ -1,22 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reminder Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are the default lines which match reasons
|
||||
| that are given by the password broker for a password update attempt
|
||||
| has failed, such as for an invalid token or invalid new password.
|
||||
|
|
||||
*/
|
||||
|
||||
'password' => 'Salasanan on oltava vähintään kuusi merkkiä pitkä ja vastattava vahvistuskentän arvoa.',
|
||||
'reset' => 'Salasana on resetoitu!',
|
||||
'sent' => 'Resetointilinkki lähetetty sähköpostitse!',
|
||||
'token' => 'Resetointitunniste on viallinen.',
|
||||
'user' => 'Sähköpostiosoitteella ei löydy käyttäjää.',
|
||||
|
||||
];
|
File diff suppressed because it is too large
Load Diff
@ -1,123 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines contain the default error messages used by
|
||||
| the validator class. Some of these rules have multiple versions such
|
||||
| such as the size rules. Feel free to tweak each of these messages.
|
||||
|
|
||||
*/
|
||||
|
||||
'accepted' => 'Kenttä :attribute tulee hyväksyä.',
|
||||
'active_url' => 'Kentän :attribute tulee olla validi URL-osoite.',
|
||||
'after' => 'Kentän :attribute päiväyksen tulee olla :date jälkeen.',
|
||||
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
|
||||
'alpha' => 'Kenttä :attribute voi sisältää vain kirjaimia.',
|
||||
'alpha_dash' => 'Kenttä :attribute voi sisältää vain kirjaimia, numeroita ja viivoja.',
|
||||
'alpha_num' => 'Kenttä :attribute voi sisältää vain kirjaimia ja numeroita.',
|
||||
'array' => 'The :attribute must be an array.',
|
||||
'before' => 'Kentän :attribute päiväyksen tulee olla ennen :date.',
|
||||
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
|
||||
'between' => [
|
||||
'numeric' => 'Kentän :attribute tulee olla välillä :min - :max.',
|
||||
'file' => 'Tiedoston :attribute tulee olla :min - :max kilobittiä.',
|
||||
'string' => 'Kentän :attribute tulee olla :min - :max merkkiä pitkä.',
|
||||
'array' => 'Kentän :attribute tulee sisältää välillä :min - :max arvoa.',
|
||||
],
|
||||
'boolean' => 'Kentän :attribute arvon tulee olla tosi tai epätosi.',
|
||||
'confirmed' => 'Kentän :attribute vahvistus ei täsmää.',
|
||||
'date' => 'Kentän :attribute arvo ei ole kelvollinen päivämäärä.',
|
||||
'date_format' => 'Kentän :attribute arvo ei vastaa muotoa :format.',
|
||||
'different' => 'Kenttien :attribute ja :other tulee olla eriarvoisia.',
|
||||
'digits' => 'Kentän :attribute arvon on oltava :digits numeroa.',
|
||||
'digits_between' => 'Kentän :attribute arvon tulee olla :min - :max numeroa.',
|
||||
'dimensions' => 'The :attribute has invalid image dimensions.',
|
||||
'distinct' => 'Kentän :attribute arvo ei ole uniikki.',
|
||||
'email' => 'Kentän :attribute arvo ei ole validi sähköpostiosoite.',
|
||||
'exists' => 'The selected :attribute is invalid.',
|
||||
'file' => 'Kentän :attribute arvon tulee olla tiedosto.',
|
||||
'filled' => 'Kenttä :attribute on pakollinen.',
|
||||
'image' => 'Kentän :attribute arvon tulee olla kuva.',
|
||||
'in' => 'Kentän :attribute arvo on virheellinen.',
|
||||
'in_array' => 'Kentän :attribute arvo ei sisälly kentän :other arvoon.',
|
||||
'integer' => 'Kentän :attribute arvon tulee olla numero.',
|
||||
'ip' => 'Kentän :attribute arvon tulee olla validi IP-osoite.',
|
||||
'ipv4' => 'The :attribute must be a valid IPv4 address.',
|
||||
'ipv6' => 'The :attribute must be a valid IPv6 address.',
|
||||
'json' => 'Kentän :attribute arvon tulee olla validia JSON:ia.',
|
||||
'max' => [
|
||||
'numeric' => 'Kentän arvon :attribute tulee olla enintään :max.',
|
||||
'file' => 'Tiedoston :attribute tulee olla enintään :max kilobittiä.',
|
||||
'string' => 'Kentän :attribute arvon tulee olla enintään :max merkkiä pitkä.',
|
||||
'array' => 'Kentän :attribute ei tule sisältää enempää kuin :max arvoa.',
|
||||
],
|
||||
'mimes' => 'Kentän :attribute arvon tulee olla tiedostotyyppiä: :values.',
|
||||
'mimetypes' => 'Kentän :attribute arvon tulee olla tiedostotyyppiä: :values.',
|
||||
'min' => [
|
||||
'numeric' => 'Kentän :attribute arvon tulee olla vähintään :min.',
|
||||
'file' => 'Tiedoston :attribute tulee olla vähintään :min kilobittiä.',
|
||||
'string' => 'Kentän :attribute arvon tulee olla vähintään :min merkkiä.',
|
||||
'array' => 'Kentän :attribute tulee sisältää vähintään :min arvoa.',
|
||||
],
|
||||
'not_in' => 'Kentän :attribute arvo on virheellinen.',
|
||||
'numeric' => 'Kentän :attribute arvon tulee olla numero.',
|
||||
'present' => 'Kenttä :attribute vaaditaan.',
|
||||
'regex' => 'Kentän :attribute arvo on väärää muotoa.',
|
||||
'required' => 'Kenttä :attribute vaaditaan.',
|
||||
'required_if' => 'Kenttä :attribute vaaditaan kun :other on :value.',
|
||||
'required_unless' => 'Kenttä :attribute vaaditaan jos :other ei sisälly arvoihin :values.',
|
||||
'required_with' => 'Kenttä :attribute vaaditaan kun arvo :values on annettu.',
|
||||
'required_with_all' => 'Kenttä :attribute vaaditaan kun arvo :values on annettu.',
|
||||
'required_without' => 'Kenttä :attribute vaaditaan kun arvoa :values ei ole annettu.',
|
||||
'required_without_all' => 'Kenttä :attribute vaaditaan kun mitään arvoista :values ei ole annettu.',
|
||||
'same' => 'Kenttien :attribute ja :other on oltava samanarvoiset.',
|
||||
'size' => [
|
||||
'numeric' => 'Kentän :attribute arvon tulee olla kokoa :size.',
|
||||
'file' => 'Tiedoston :attribute tulee olla kokoa :size kilobittiä.',
|
||||
'string' => 'Kentän :attribute arvon tulee olla kokoa :size merkkiä.',
|
||||
'array' => 'Kentän :attribute tulee sisältää :size arvoa.',
|
||||
],
|
||||
'string' => 'Kentän :attribute arvon tulee olla tekstiä.',
|
||||
'timezone' => 'Kentän :attribute arvon tulee olla validi aikavyöhyketunniste.',
|
||||
'unique' => 'Kentän :attribute arvo ei ole uniikki.',
|
||||
'uploaded' => 'Tiedoston :attribute lataus epäonnistui.',
|
||||
'url' => 'Kentän :attribute arvon tulee olla validi URL-osoite.',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify custom validation messages for attributes using the
|
||||
| convention "attribute.rule" to name the lines. This makes it quick to
|
||||
| specify a specific custom language line for a given attribute rule.
|
||||
|
|
||||
*/
|
||||
|
||||
'custom' => [
|
||||
'attribute-name' => [
|
||||
'rule-name' => 'custom-message',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Attributes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used to swap attribute place-holders
|
||||
| with something more reader friendly such as E-Mail Address instead
|
||||
| of "email". This simply helps us make messages a little cleaner.
|
||||
|
|
||||
*/
|
||||
|
||||
'attributes' => [
|
||||
//
|
||||
],
|
||||
|
||||
];
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user