Laravel answers

  • 0answers
    Can I add an arbitrary parameter to the routes?
    Hello everyone! For example, there is a route or resource: Route::get('users/settings/reset', '[email protected]')->name('users.settings.reset');Route::resource('users', 'UserController'); Can you somehow add your own unique parameter to the definition of routes? For ...
    Laravel Seth Howard, Jul 5, 2019

  • 0answers
    How do I properly dump laravel data?
    Guys can you tell me how to correctly update data in laravel. I thought so, but the code does not work, you can correct me) public function update(Request $request,$id){ $user = Crud::find($id); $update = $user->update([ 'name' => $request->input('name'), ...
    Laravel Anonymous, Apr 19, 2020

  • 0answers
    How do I apply filters in a model in Laravel?
    Hello everyone, I have a table with "items" -id -name -shop_id And the many-to-one linked table "shops" -id -name -delivery -city "Cities" lookup table -id -name And a table with one-to-one links "reference_city" -id -shop_id -city_id There are the same 2 tables for delivery The ...
    Laravel Sebastian Hickman, Jun 27, 2019

  • 0answers
    Does it make any sense to build a symfony site instead of laravel, with a peak traffic of 10,000?
    I need to make a news site. Attendance, according to the client: "the site must withstand up to 10,000 readers at a time ". I know Laravel better, but I haven't done projects for such a load. Does it make sense to go to a symphony and what is the meaning? Queries may have to be done manually ...
    Laravel Aiden Frey, Jun 29, 2019

  • 0answers
    How to safely deliver data on the status of a payment made in apple pay from the client to the server?
    Hi guys, did anyone pay apple pay? In particular, I'm interested in a way to get information about a payment on the server. To my surprise, I did not find the opportunity to set entripoints to the server, which google service goes to depending on the status of the payment made on the client ...
    Laravel Daniel Golden, Jun 2, 2020

  • 0answers
    Do you edit the Permissions for the disk in the filesystems.php config?
    Hello, the web server is installed: nginx + php-fpm. I strive to ensure that the project folders have rights - 775 and on files - 664. After setting the php-fpm configs, it seems like I did that the site scripts create folders with 775 rights and files from 664, except for Storage, it creates ...
    Laravel Everett Lynch, Feb 7, 2019

  • 0answers
    How to connect node to laravel for chat?
    Hello. There is an application written in vuejs which lies in a separate server from the backend which is written in laravel. Now the task is to implement a chat in the application. The server side of the chat is written in nodejs The question is that I just can't figure out how to connect ...
    Laravel Phoebe O'Neill, Sep 19, 2019

  • 0answers
    How do I handle files?
    I have an application in which several files can be attached. Now I save a model with fields and create an additional model for files. But what to do if there are a lot of files, more than the limit in php.ini. As I understand it, you need to use ajax, but then how to connect it to the model?
    Laravel Jude Zhang, Apr 28, 2020

  • 0answers
    How to bind id when hasOne?
    There are tables company id | name | form_id forms id | name If the Company model has public function form() { return $this->hasOne(Form::class); }, then how to work with it? Create a new dig $company = new Company();$company->name = 'some name';$form = ...
    Laravel Aurora Villanueva, Jan 27, 2019

  • 0answers
    Counter on Laravel 1-100 (Implementation)?
    @foreach ((new App\Services\PlayersService)->TopSila() as $player)<div class="Block1" style="clear: both;"><div class="Information" style="display:inline-block;color:#827af7;">ТУТ МЕСТО (1-100)</div> // Блок который повторяется 100 раз ...
    Laravel Milo Vaughn, Nov 18, 2020

  • 0answers
    Why was the key of the linked table not populated?
    migration Schema::create('companies', function (Blueprint $table) { $table->id(); $table->string('name'); $table->foreignIdFor(CompanyForm::class); code $company = new Company();$company->form()->firstOrCreate( // данные. ...
    Laravel Phoebe Sharp, Apr 1, 2020

  • 0answers
    How to specify folder for images from sass in Laravel mix?
    Tell me this moment. So that images and fonts when compiling SASS, fall into the folder I need, I specify the directives mix.config.fileLoaderDirs.images = '/myFolder1/images';mix.config.fileLoaderDirs.fonts ='/myFolder1/fonts'; But the fact is that I have several SASS packages compiled for the ...
    Laravel Anonymous, Aug 9, 2019

  • 0answers
    Mail does not work. Laravel. How to fix?
    Good afternoon. Faced a problem, please help. Sending email notifications created by templates using laravel does not work. Not many details: I created a project, installed laravel and connected templates for authorization. Activated verification by email. We entered incorrect data into env, ...
    Laravel Anonymous, Nov 24, 2019

  • 0answers
    How to fill in pivot table fields when creating a record in a dependent talitz?
    class Company{ public function documents() { return $this->belongsToMany(Document::class); }}// перебираю значения, нужно создать документ(если такого нет) и заполнить поля для связующей ...
    Laravel Lilly Henson, Dec 16, 2019

  • 0answers
    How do I compare a value with a json column in laravel?
    Good afternoon There is a cart_items table, it has a json modifiers column. I am trying to do the following through eloquent model: CartItems :: where ('modifiers', '[]') - & gt; get (); I can't do anything, I can't even compare an empty column, not that there are any ...
    Laravel Charlotte Frost, Feb 20, 2019

  • 0answers
    Routing Route [login] not defined?
    Hello There was a problem ... According to my idea, everything should go like this: if a person is not registered, he gets a modal window with a message, but I end up with a Laravel error. Route::prefix('user')->group(function () { Route::post('login', 'Auth\[email protected]'); ...
    Laravel Anonymous, May 6, 2020

  • 0answers
    Correct Model Attitude?
    I have an application "Evaluation" and an application "Expertise", they have different fields, but they must be saved under the same id. My decision to create the Application Table and write id and type there, that is, use polymorphic relations, do I think right?
    Laravel Anonymous, Sep 2, 2020

  • 0answers
    How to add meta tags and micro-markup in vue (+ vue routes) + laravel bundle?
    How to correctly add meta tags (depending on the page) if the front is on vue + vue routes, and the back is on the lare? Moreover, it is necessary to make sure that both search engines and various social networks see the data. Is it possible? Project data: Just one blade template ...
    Laravel Anonymous, Sep 6, 2020

  • 0answers
    Which package, library for transliteration to use for Laravel?
    Hello. There is a need for transliteration of strings in Russian and Ukrainian. The task is quite simple, but I don't feel like cycling. In Laravel7 I used But it is unfortunately not installed under Laravel8. Who uses what for such ...
    Laravel Anonymous, Sep 11, 2020

  • 0answers
    How to display Exception text instead of Laravel 'Server Error'?
    If I set APP_DEBUG = false in .env. Then instead of the text of my Exceptions, 'Server Error' is issued There is BaseExceptions extends DomainExceptions. All others inherit from BaseExceptions. How do I output the text of a specific Exception?
    Laravel Anonymous, Mar 3, 2019