I’m pretty new to Laravel and I’m trying to pass data from my controller to the view, which I managed to do as follows: Controller: main.blade.php: This works fine but now my question is what can I do if I want to change the value of value1 with another method of the controller without refreshing the page? Are there different
Tag: controller
Laravel: how to pass GET array to controller?
How to pass array of GET parameters to the controller? This is my route file routes/web.php: And my controller ‘app/Http/Controllers/Parser.php’: So, I expect to get an array of parameters like this: But if I pass GET array to my route path: http://example.com/ids?ids[]=1&ids[]=2&ids[]=15&ids[]=25 I get an empty request object anyway: {“attributes”:{},”request”:{},”query”:{},”server”:{},”files”:{},”cookies”:{},”headers”:{}} Answer There is few ways to get data from GET.
how can I download my file residing in local repository
I am new to CodeIgniter and was working on downloading a file. However, I want to download a file that resides on my local machine, I am able to locate the file by providing the path, also the file gets downloaded with a File type, However, I want my file to be in .csv format Here goes my Controller’s download
How can get the name of a image stored in /storage/public if was dynamic name
My problem is that i upload a image on the website in laravel but the database save the path of my local storage with a strange name and extension: The picture was uploaded fine in Storage/app/public but with another name (Like a hash code): Now, how can get this name in /Storage/Public with a query on a database, or how
Why is this code showing $req variable undefined?
<?php namespace AppHttpControllers; use IlluminateHttpRequest; use IlluminateSupportFacadesDB; class universityController extends Controller { // public function getStudents(…
Undefined database variable
Blog.php code below: blog_index.php code below: I can’t see where is my mistake, it raises a errorException: “Undefined Variable:dados”. About $categorias variable, am learning how to use more than one table per controller. Codeigniter version: 4.0.4 Running through xampp Answer Controller Blog.php View blog_index.php Note :- For Reference see this:- https://codeigniter4.github.io/userguide/outgoing/views.html#adding-dynamic-data-to-the-view
How to extend Shopware 6 controller action
I am building a plugin for Shopware 6 and cannot seem to find any documentation as to how to extend an existing controller action. I found this How to add an Action to Account Controller in Shopware but it seems to refer to Shopware 5 and I am not sure I can use it that way in Shopware 6. The
Laravel view with variable, missing required parameters for route
I am losing too much time for (I am sure) a small missing, but I am not able to find it. Here my issue. I want to create an open blade, so without authentication, with a variable parameter in the …
Integrity constraint violation in laravel
I am passing the ID in URL to get to the Form Page I want but I want to pass in the same ID when I hit the submit button and I want to pass in the same ID to the database table name “created_by” …
Laravel join(): Argument must be an array
I’m trying to read 2 tables in my view. Now I am trying to join an other table like this in my sslcontroller.php