Laravel, oracle connectivity

Posted In Laravel
  • kostas-kostas 2 weeks ago
    Hello! Happy new year to everyone!
    
    I'm a very novice laravel user and I need your help. I need to create a website connected to oracle express. I want a user to insert his/her id number into a form and after pressing submit key, to retrieve some data from the database. 
    
    I have added the route at routes.php file (looks like this Route::get('/search', '[email protected]'); ) and the search blade (with the form).
    
    My first question is where I should create the query to select the results from database; Inside another blade or I should create a controller? Could you please give me a simple example?
    
    And secondly, how should I connect oracle database to laravel? I have followed this instructions http://broncodev.com/2017-06-18-laravel5-oracle/ and I edited the .env file but when submitting form input I get a TokenMismatchException error.
    
    Please could you assist?
    Thank you in advance!

    Hello! Happy new year to everyone!

    I'm a very novice laravel user and I need your help. I need to create a website connected to oracle express. I want a user to insert his/her id number into a form and after pressing submit key, to retrieve some data from the database.

    I have added the route at routes.php file (looks like this Route::get('/search', '[email protected]'); ) and the search blade (with the form).

    My first question is where I should create the query to select the results from database; Inside another blade or I should create a controller? Could you please give me a simple example?

    And secondly, how should I connect oracle database to laravel? I have followed this instructions http://broncodev.com/2017-06-18-laravel5-oracle/ and I edited the .env file but when submitting form input I get a TokenMismatchException error.

    Please could you assist? Thank you in advance!

Please login or signup to leave a response.