I set the date format for viewing to "d-m-Y", while the recording format is the "Y-m-d" bank.
However at the time of recording in the bank, something happens and the data is going in the format "mdY", and with that the data will be truncated,...
I have some views that only clients can access, and some that only administrators can access. What I defined in the case is the client_id, which if "1" is an administrator and if it is any other client. I control this with 2 Middleware locally,...
I have two tables that are already related in MySQL and I use Laravel , I'm already persisting the information in the database. When I write a story, it is already assigned to the author (tables autor and news ).
At...
Well, I've tried to read the documentation and develop this relationship, but I can not really tell you what the user's name is. The database model looks like this:
% of% involved
App\User
App\TipoUser
App\UserTipo
And in my model i...
I have a bug that I do not know the reason for it.
I have in my controller the following Eloquent :
$balances = BankUser::select(DB::raw('SUM(balance) AS total,
created_at, DATE(created_at) AS total_at'))...
I would like to stop displaying by date and descending and make it display randomly or as I know it - random.
Below is the excerpt that I have to modify from the php file:
public function getNewReleases() {
return Album::with('artis...
I have a form with several inputs, combos and etc.
How can I do that when the user selects an option in the combo the cursor already jumps to the next field of the form?
Also make sure that when the user completes a field that has a certai...
I tried to authenticate, but always returns false in the Auth::attempt() method of Laravel:
$prontuario = Input::get('prontuario');
$senha = Input::get('senhas');
if (Auth::attempt(['prontuario' => $prontuario, 'senha' =>...
I'm using Laravel 5.3 , and when doing a foreach in the view, it does not recognize as an object, but if I print only what is in the $user variable it prints a json object %.
Controller:
public function getAll()
{
retu...
I have the following foreach in Laravel.
@foreach($values as $value)
<li>{{ $value }}</li>
@endforeach
I would like to add some special information when it comes to the first item in the loop.
In some other template...