menu

Recent questions tagged laravel

2 votes
1 answer
Is it difficult to connect a server with golang sockets? There is a monolith, which is slightly split into 3 servers, base, sockets and front + back. Service is growing, a lot falls on sockets as constant communication, the a ...
by hellohelpme
asked Sep 24, 2021
1 vote
1 answer
Output information from the MySQL database without calling a controller in Laravel? Hello, I put in the header a list of my links (pages of the site) public function navlink(){ $pages = pages::all()->whereNotIn('url','404','/'); return view('la ...
by RadionOdessa
asked Sep 24, 2021
1 vote
1 answer
image
Why does Livewire Laravel not update data from the database? Hi all. I cannot understand why Livewire does not update data from the database. The counter from the standard tutorial works. And as I noticed everything works withi ...
by dmytrotus
asked Sep 24, 2021
1 vote
2 answers
How would you solve this problem? I have a request and I need to display the request number on the form, how would you solve this problem, at the moment, I get the following id from the database, most li ...
by Encoders
asked Sep 24, 2021
1 vote
1 answer
How to show/hide a field from a table under certain conditions? How do I show the secret field and hide it by default? Show subject to authorization and at the same time an active subscription? It turns out that we are working wi ...
by StrangeGoogle
asked Sep 23, 2021
1 vote
1 answer
image
Why is there an error when uploading a file via Dropzone js? Error: web.php://Route form displaying our formRoute::get('/dropzoneform', 'ProductController@dropzoneform');//Rout for submitting the form datatRoute::post('/storedata ...
by Alexfixer
asked Sep 22, 2021
1 vote
1 answer
How to use one FormRequest to create and edit? Hello, could you please tell me how to use one FormRequest to create and edit. I want to create and update an employee using one array of rules I have this rule in my ...
by PankovAlxndr
asked Sep 22, 2021
2 votes
2 answers
image
Why does it sometimes take too long for a model to be added to the database (Laravel)? From time to time such requests appear in the server logs: That is, from time to time the server response speed starts to increase from 0.2 seconds to 3 or even 8 seco ...
by Tutucu
asked Sep 22, 2021
1 vote
1 answer
image
How to build a query on a database? There is a database with two tables: catalogs and tasks. Their structure: The catalogs table is recursive and looks something like this: I use Eloquent ORM. How can I o ...
by null_object
asked Sep 22, 2021
1 vote
1 answer
Laravel in subfolder. How to configure it correctly? Greetings, Deploying laravel on the hosting subdirectory. In principle, all put without problems, but there are problems with the paths that I do not understand how t ...
by barma001
asked Sep 22, 2021
9 votes
3 answers
image
What causes the request processing time jumps? Hi all, what's up: Server: 2 x 2.8 GHz, 4 GB RAM, 50 GB NVMe (13 GB full), 200 mbps ubuntu, nginx, php-fpm, php 7.3, laravel, mysql it has an API server that is supp ...
by Tutucu
asked Sep 22, 2021
2 votes
1 answer
Does routing in Laravel not work as expected? Hello, I can not understand how routing works in Laravel (the latest version 8, maybe in other versions). Route::prefix('admin')->name('admin.')->middleware('auth ...
by weblive
asked Sep 21, 2021
2 votes
3 answers
How to implement the sending of data with a limit on the number of requests to an external service - 10 requests per second? Hello! In the system (Laravel) need to integrate a newsletter service (in this case SendPulse), which will be poured and updated contacts of customers. In the SendPulse ...
by fomvasss
asked Sep 21, 2021
1 vote
1 answer
How do I teach Livewire to load components from another location? I started to put the project in order and decided to distribute it by modules. There were no problems with controllers, views, router, but I don't know what to do with L ...
by DenisDangerous
asked Sep 21, 2021
1 vote
1 answer
What is the correct way to link the two models in testing? I'm trying to test the User model I created, which is linked to the UserMeta model like this: public function meta() { return $this->hasOne(Usermeta::class, ...
by 0example
asked Sep 20, 2021
1 vote
2 answers
How to handle different data on the same url nesting level? What to do in such cases? Route::get('/{page}', 'Frontend\PageController@index'); Route::get('/{catalog}', 'Frontend\CatalogController@index'); Route::get('/{catalog ...
by Ssonik
asked Sep 20, 2021
1 vote
4 answers
How to implement a marketplace in laravel? We need to make a kind of marketplace in laravel with mini sites for each store The way I see it 2-two platforms on laravel 1- The main site, where all the informa ...
by nicolaa
asked Sep 20, 2021
1 vote
1 answer
How do I choose the version of laravel when installing? Hello on the openserver module apach 2.4, php 7.4, mysql 8 I install Laravel 8 by default how to install 7? ...
by Speakermen
asked Sep 20, 2021
1 vote
1 answer
How do I modify files? I have a database table of documents with name and path, I need to implement update of the user who has a lot of documents. This is implemented, it uses text field and i ...
by Encoders
asked Sep 20, 2021
1 vote
2 answers
image
Can't restore a record deleted via soft delete? Here is the error report in frame 44, app/Http/Controllers/service/DB_controller.php UsersDB.php model: <?phpnamespace App\Models;use Illuminate\Database\Eloquent\F ...
by Pyhon3x
asked Sep 20, 2021