menu

Recent questions tagged laravel

1 vote
1 answer
How do I clear the laravel cache for shared hosting? Such questions have already been asked, both here and online. But I couldn't find an answer. Cleared the storageframeworkviews folder - did not help Written in web.php: ...
by Alinw
asked Apr 1, 2021
1 vote
1 answer
How do I get a key in laravel validator that failed validation? There are rules: $validator = Validator::make($args, 'place.name' => 'required|min:3|max:50', 'place.type_id' => 'required|integer|exists:t ...
by vanyahuk7
asked Apr 1, 2021
2 votes
1 answer
What's the best way to make an admin panel in a Laravel project? Good afternoon. There are several ways to create an admin area in a laravel project. 1) Use a ready-made admin panel like voyager 2) Use a Laravel CRUD generator like ge ...
by AlexeewAlex
asked Mar 30, 2021
1 vote
1 answer
How can I get a request from another server without a 405 error? Hello, everyone! I use the latest version of Laravel -8. In web.php prescribed the address to which the server will be referenced: Route::get('/callback', MyController ...
by ChertyakaNUB
asked Mar 30, 2021
1 vote
1 answer
How does Laravel livewire hide the list when the input is not active? Using livewire in Laravel 7 <input type="text" wire:model="query"> <ul> @foreach($tops as $top) <li> ...
by gagablik
asked Mar 30, 2021
1 vote
1 answer
The API Resource with the linking table doesn't work? Good evening everyone! There is a connection between a User and his contacts, which is done through one to many, in UserInfo looks like this : public function contacts( ...
by smilelan
asked Mar 29, 2021
1 vote
4 answers
How do I do authorization in Laravel 8? How do I do authorization in Laravel 8? Yes, I searched on Google Yeah, I couldn't get through the documentation. What to do? Thank you! ...
by Pyhon3x
asked Mar 29, 2021
1 vote
1 answer
What should I do about this Laravel error? I'm quite new to Laravel, and in the process of learning I've encountered of this problem. routes/web.php: <?phpuse Illuminate\Support\Facades\Route;/|----------- ...
by Pyhon3x
asked Mar 29, 2021
1 vote
1 answer
image
Laravel-echo-server does not find redis? Laravel-echo-server tries to find BD Redis at 127.0.0.1 ip . But there is another ip in the .env, which is where it should look for it .envREDIS_HOST=81.161.127.17REDI ...
by denis_21321321
asked Mar 26, 2021
5 votes
2 answers
How do you take it out without losing performance? There was a monolith in laravel, we decided to split it into parts and that's how it turned out: 1) database server + sockets 2) server front + back 3) server front + ba ...
by hellohelpme
asked Mar 26, 2021
2 votes
1 answer
How do I get a list of items, given their availability in the desirable? Good afternoon. The situation is as follows: there are three tables users - id, ...;products - id, ...;user_wishlist_products - id, user_id, product_id, ...; Is there an ...
by syndarva
asked Mar 26, 2021
1 vote
2 answers
Is there any way to use the blade in an event? I have a customer in the database, I display his name in the select field in the blade view, when you click on the name of the customer I have to display his services, i ...
by Encoders
asked Mar 26, 2021
1 vote
1 answer
Unknown or bad timezone (EuropeMoscow) - how is this possible? We have Laravel with time zone settings 'timezone' => 'UTC', // настройка для самого Laravel'api_timezone' => 'Europe/Moscow', // настройка для данных от API Nex ...
by sasha-hohloma
asked Mar 26, 2021
2 votes
1 answer
How do I sort a model by Laravel relationships? There are Order, OrderItem, Platform models. Order hasManyOrderItems. OrderItem belongsToPlatform. OrderItem belongsToOrder. I need to sort Platform by the passed val ...
by dmitriyuvin
asked Mar 26, 2021
1 vote
1 answer
Clear cookies in Laravel? There is a Cart class, it is responsible for the Cart I made the cart through cookies. Addition public function addProductToCart(int $product_id, $product_count,$price ...
by Aslero
asked Mar 26, 2021
2 votes
2 answers
image
How do I get the avatar to change after a new one is uploaded without reloading the page? There is a user's profile, in which the ability to upload an avatar is implemented. Also in the navigation there is an icon (a smaller version of that very avatar). I do ...
by Cathari
asked Mar 26, 2021
2 votes
2 answers
How to do the right API in Laravel + Vue? I'm making an application that uses Vue on the front end. The page needs to get the necessary data depending on the routing. I have a question: how to do it right? I.e. ...
by tr0yka
asked Mar 25, 2021
1 vote
2 answers
How best to do the division of goods by warehouse? Right now I have it like this Products Route::get('/orders', 'admin\OrdersController@orderlist');Route::post('order-add', 'admin\OrdersController@addorder')->name('or ...
by fegedij392
asked Mar 25, 2021
1 vote
1 answer
How do I add data to a page in a dynamic list from another controller? Help a newbie figure this out, There is a page with the add product controller, Route::post('order-add', 'admin\OrdersController@addorder')->name('order-add'); Route ...
by fegedij392
asked Mar 25, 2021
2 votes
2 answers
Is there any way to enable the laravel debugger if the frontend is in vue js? The standard laravel has a great debugger that shows you the routes that were queried, sql queries, and more. Included in envAPP_DEBUG=true . But the project has a vue f ...
by Djonson86
asked Mar 25, 2021