Questions tagged as 'laravel-rotas'

1
answer

URL :: previous () returns incomplete path

As I'm studying the book Code Bright , I get errors from time to time. But this one did not find a solution in Google. When doing Redirect::to() from one route to another should be displayed the previous full address, but only appears...
asked by 23.01.2014 / 20:59
1
answer

Pass parameter from one route to another

I need to get a url variable and redirect with the parameter to another function Route::get('doacao/{id}', function(Request $request){ return Redirect::route('escolha/doacao')->with('id',$request->id); }); Redirecting to this other...
asked by 02.02.2017 / 13:21
3
answers

Should I use routes or controllers in Laravel 4?

I'm a beginner in Laravel and I have questions about using controllers , I read several examples / tutorials and I see the vast majority use the routes for example for a form request , to display pages, even database queries. I'm developin...
asked by 25.12.2013 / 16:54
1
answer

PDF Generator with Laravel Framework?

I need to make snappy generate reports from BD data. But for this I needed examples of using snappy , in the documentation of github you even have an example, but that example did not help me. I needed an example of how to...
asked by 06.03.2017 / 19:04
1
answer

How to identify in the constructor the method that was called?

How do I in the constructor of my controller identify which method was called? I'm using Laravel 5.3 and my controller follows the default resource ( index, show, edit ...).     
asked by 20.12.2016 / 15:23
1
answer

Extender Resource Controllers

I'm doing what I want in a way and I'm looking for alternatives or better ways to do it. I am using Resource Controllers in my application. I'm also using softdelete in many models, so my routes look like this: Route::get('users/deleted', arra...
asked by 21.03.2014 / 14:24
3
answers

Friendly URL for GET form in Laravel 4

My question is this: I have a search form (GET), and I would like to know how to execute submit sending those parameters to the URL in a friendly way. Note: parameters are not required. Form : {{ Form::open(array('route' => 'ne...
asked by 16.12.2013 / 18:04
2
answers

Send parameter from one route to another

I want to send a variable from one route to another, to display this variable in the view, use example: public function create(ExamRequest $request) { Exam::create( $request->all() ); $message = 'A avaliação "'.$request->input('n...
asked by 09.01.2017 / 18:35
1
answer

Laravel - How to call a different action from store, update, edit?

I created a action but not the default of resource , as I can call it by an action in form as I call update and store . <form method="POST" role="form" action="{!!URL::route('cadastro.store')!!}" > I w...
asked by 02.12.2016 / 00:16
1
answer

Error: The Response content must be string or object implementing __toString (), "object" given

I use laravel 5.3 and am having this problem:    The Response content must be a string or object implementing __toString (), "object" given, When I try to use a route that returns an image of a particular user from my system, follow the...
asked by 27.12.2016 / 23:30