I have a doubt since I have installed Laravel 5.4 and the adminLTE 3.0 template, in which after everything was working I put it in Spanish, everything normal until then, then I wanted to change the html code of the login, but I find that the code is generated by a function inside the view of login.blade.php
the file path is: resources/views/vendor/adminlte/auth/login.blade.php
@extends('adminlte::layouts.auth')
@section('htmlheader_title')
Log in
@endsection
@section('content')
<body class="hold-transition login-page">
<div id="app" v-cloak>
<div class="login-box">
<div class="login-logo">
<a href="{{ url('/home') }}"><b><span style="font-size: 50px">Admin</span></b>LTE</a>
</div><!-- /.login-logo -->
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br>
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<div class="login-box-body">
<p class="login-box-msg"> {{ trans('adminlte_lang::message.siginsession') }} </p>
<login-form name="{{ config('auth.providers.users.field','email') }}"
domain="{{ config('auth.defaults.domain','') }}"></login-form>
@include('adminlte::auth.partials.social_login')
<a href="{{ url('/password/reset') }}">{{ trans('adminlte_lang::message.forgotpassword') }}</a><br>
<a href="{{ url('/register') }}" class="text-center">{{ trans('adminlte_lang::message.registermember') }}</a>
</div>
</div>
</div>
@include('adminlte::layouts.partials.scripts_auth')
<script>
$(function () {
$('input').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue',
increaseArea: '20%' // optional
});
});
</script>
</body>
@endsection
Where this piece of code generates the form and I want to change the styles with the div classes but I don't know where it comes from, I want to know how to change the classes or where it comes from in order to edit them:
<login-form name="{{ config('auth.providers.users.field','email') }}"
domain="{{ config('auth.defaults.domain','') }}"></login-form>
What I want to know is how I can edit the classes of the generated div or where the generated div comes from with that function to edit them.
The config() helper will look inside the app/config directory for whatever you specify as the first parameter, the . implies that the first parameter is the name of the file, and then the values within the array of that file.
In other words,
config('auth.defaults.domain','')
it will look inside the file forapp/config/auth.php
the valuedomain
inside the arraydefaults
, and in case it doesn't find that value, it will use an empty value by default''
.If you want to change the content of
<login form name="..." domain="..."></login-form>
, you can find it inresources/assets/js/components/auth/LoginForm.vue
, it is a vue.js templatehttps://github.com/acacha/adminlte-laravel/blob/master/resources/assets/js/components/auth/LoginForm.vue