Avatar of Eduardo Fuerte
Eduardo Fuerte
Flag for Brazil

asked on 

Could you point what is needed to be adjusted at this Laravel code to correctly call the Controller method?

Hi Experts

Could you point what is needed to be adjusted at this Laravel code to correctly call the Controller method?

The link is at the site's main page:

img003
@if($vitrinesX->count()>0)
	 <div class="col-md-12">
	 
		<img src="{{ $vitrinesX[0]->url }}" />
		<br />
		 
		 
		 <div class="col-md-12" style="padding-top: 9px;">
			
			<a href="/vitrine?id={{ $vitrinesX[0]->id }}">
				ver todas as fotos
			</a>
			<br />
			
			<!-- Route that must to be called -->
			<a href="/vitrine/minhasfotos">
				ver minhas fotos
			</a>
			 <br />
			
		</div>
	</div>

@else
	<div class="col-xs-12 col-sm-12 col-md-12">
		<div class='alert alert-info'>
			Nenhuma vitrine cadastrada, ativa ou aprovada.
		</div>
	</div>
@endif

Open in new window



Route:
Route::get('/vitrine/minhasfotos',['uses'=>'VitrinesController@minhasFotos'])->middleware('cadastro');

Open in new window


Then a 2nd page must to be oppened with only the images owned by the logged user.


The Controller is not called.

Thanks in advance.
LaravelPHP

Avatar of undefined
Last Comment
Chris Stanyon

8/22/2022 - Mon