I have a form with a field of type month , which sends a value in the format Y-m to my controller. How do I search the records for the selected month and year?
I'm using l5-repository
I did this, but it does not work:
$dat...
I have a project in Laravel. When I put my files to my hosting server and access the domain, it shows me the files and folders instead of redirecting me to the index.
On my machine I create a virtualhost pointing to the public folder where...
I created a filter in my view index, when I put something inside one of the filter inputs it enters the ifs but I think it is not good in this way, does anyone know in any better way?
public function index()
{
$usuariosFiltro = null;
$...
I'm currently working with models, migrations, seeds and fakers (factory) for testing the database.
So far, I've got to insert 1 admin, whose code I'll introduce:
DB::table('users')->insert([
'id'=>'1',
'name' =&g...
Let's say the name of my selected user is " Raylan Soares Campos ", how do I display only the first two names? In the case " Raylan Soares ".
I'm using laravel 5.2, I do not know if I have a facilitator or if I have to do a function manually,...
I understand the operation of csrf_token but I'm having problems with it. For example when I get inactive for about 5 minutes without working on the site and try to log in, it tells me that I have a token problem.
Ihavethefollowingque...
I'm new to Laravel 5.1 (actually Laravel) and I'm having a hard time understanding how to work with style sheets and simple scripts. On several sites, I see that I need to add an element in my composer.json which is "laravelcollective/html"...
I have a laravel array that renders checkboxes:
@foreach($images as $img)
<div class="col-md-3">
<img src="{{url('gallery_images')}}/{{ $img->image }}" class="img-thumbnail" alt="">
&l...
In a Mysql table
id valor
1 5
2 15
3 7
I want to get the value of the "id" that has the highest value in the value field. I want it to return the value 2 in this case.