How to use an .php extension file in a Laravel form?

0

I have a .php file that was developed in php pure and need to use it in Laravel .

For this I need to call it directly from the action of a form , however the application is being developed in Laravel .

How can this file be used without using the Laravel routes?

    
asked by anonymous 20.07.2017 / 05:40

1 answer

0

The ideal would be to use laravel routes to do this, otherwise it would not make sense for you to use a framework that gives you many features if you do not want to use those features.

You do the following:

Create a controller in your application and put your php script in a method of this controller, create a route and point to that method. Or if you prefer you can play the direct code in an anonymous function in the route file.

Then in the action of your form you can point to this route.

    
22.07.2017 / 18:50