Skip to content
Advertisement

Tag: laravel

Undefined property: IlluminateDatabaseMySqlConnection::$Id

I was trying to pass a parameter from my database to my view. Controller Route Blade/View And from PHPMyAdmin, we can see a table named statisticforteacher, and each column name is also right. However, I still get the following error. ErrorException Undefined property: IlluminateDatabaseMySqlConnection::$Id Answer Here $data return query builder instance so you have to return collection in order to

Redirect to default locale if not given and fortify routes

I made a middleware to change the language of my website but now I am facing two problems, so I would like your help to solve them: when the user types for instance http://mywebiste/en/operations the site is displayed in English, but if I omit the locale on the URL a 404 page is thrown. My intention is to automatically redirect

Custom service provider for Lumen

I’m new to Lumen, and have a fresh install (v8.2.4) and have followed the docs, trying to write my own service, but I keep getting error Like I said, its a fresh install according to the Lumen docs. in /bootstrap/app.php in /app/Providers/BatmanServiceProvider.php My controller: app/Http/Controllers/MainController.php What am I missing/doing wrong? Answer in /bootstrap/app.php in /app/Providers/BatmanServiceProvider.php create Services folder in your_lumen_project/app,

Logging into a soap API with cURL and Laravel

I’m having some trouble with this. I am trying to login to a Soap API with SSL I have generated the .pem file and can verify it is good by doing the following The following give me HTTP/1.1 202 Accepted Now, when I essentially try to do the same thing within a laravel controller with the following, I get the

unable to display session variables in a non-auth application

I’m trying to store and retrieve form data in laravel session. My app is non-auth, meaning users are not required to register, hence no authentication. After attempting to store form data in session, when I try to output it says: “Trying to get property ‘name’ of non-object” Why do I get this? Does laravel session by default work only with

Only some values are editing with a form Laravel 8

I am using a form and I don’t know why I can edit with it the values except in the fields apellido and cedula. I am using the same logic in all the form fields so I dunno what can be causing it. I’m gonna post the code of the view, controller, and model. View Controller Model I have no

Advertisement