laravel

Plesk PHP emails with laravel are not receiving DKIM signature

北慕城南 提交于 2021-01-29 17:07:43
问题 When I send email from the Round Cube web client, the email is signed signed with DKIM. However when a website sends email via Laravel it is not signed with DKIM. I'm sending two emails one with laravel notifications and one with mail. Both don't receive a DKIM signature. I've turned on the signature settings in Plesk. The question is how can I add my DKIM signature when sending emails using laravel. OS: ‪Ubuntu 18.04.5 LTS‬ Product: Plesk Obsidian 18.0.31 Update #1 my mail settings in

Laravel/Lumen: Method Illuminate\View\View::__toString() must not throw an exception

混江龙づ霸主 提交于 2021-01-29 17:00:38
问题 so recently, one of my higher-up coworkers stopped working at my job. Due to this, I'm left with some of his responsibilities. Our server is used by one university over here, so to make requests (i. e. a student pays one of his monthly payments) we use a SOAP service to do stuff ( https://api.uregional.net/zoap/uregional/server ). As you can see, the site displays a "Whoops, looks like something went wrong." message when it's loaded. Going into the server logs, I get this error a lot of times

relative path in @nuxtjs/dotenv

馋奶兔 提交于 2021-01-29 16:32:06
问题 I am building an SSR nuxt.js project with laravel backend, and I want to share the .env for both laravel and nuxt. Here is my folder structure (base on a laravel folder structure but add a client folder to put nuxt) here is my nuxt.config.js module.exports = { srcDir: __dirname, buildModules: [ [ '@nuxtjs/dotenv', { path: '../' } ] ] } package.json { "private": true, "scripts": { "dev": "node_modules/nuxt/bin/nuxt.js -c client/nuxt.config.js", "build": "node_modules/nuxt/bin/nuxt.js build -c

Laravel websockets failed to connect in pusher

旧街凉风 提交于 2021-01-29 16:07:29
问题 When I run my project, I got an exception error but it does not have a clear message. I only have this kind of the main body error I can access websocket admin page at http://127.0.0.1:8000/laravel-websockets but when i go http://127.0.0.1:8000/ i got errors below. The following error was encountered while trying to retrieve the URL: http://127.0.0.1:6001/apps/995591/events? Connection to 127.0.0.1 failed. The system returned: (111) Connection refused The remote host or network may be down.

Make a separate livewire component to delete an array of users along with traits

对着背影说爱祢 提交于 2021-01-29 15:45:00
问题 Description I have a "belongsToMany" eloquent relationship between users and roles. I have created a trait for bulk actions, so I'm able to delete users in bulk. Now what I need to do here is, I need to make a separate livewire component to delete users in bulk. But the problem here is that the trait which is being used in Livewire/Backend/UserController needs rowsQuery property, which is present in the UserController and as whenever the users are selected to be deleted, it calls the

Laravel 7 Artisan error - Argument 2 passed to Illuminate\Routing\UrlGenerator::__construct() must be an instance of Illuminate\Http\Request

天涯浪子 提交于 2021-01-29 15:40:29
问题 First of all I am kind of new in Laravel but I do like to learn and I really need your help fixing this error. my project is cloned from my GitHub and all the steps i think I have done them as by the book :) however running Laravel installation at the end I've got the error to be more specified. config.php is not present in config folder (in order to try as one suggestion rename it as config_ ) I did tried without success all commands suggested in different resolutions php artisan cache:clear

Laravel LiveWire Pagination issue

岁酱吖の 提交于 2021-01-29 15:35:39
问题 I am new to LiveWire and trying to build simple app with Laravel , jetstream and livewire My application get data from DB and show in Table with Pagination. every thing is working fine but issue is when i click on any page I got URI '?page=2' I dont want to see this URI in Url my blade is also simple as bellow <x-app-layout> <x-slot name="header"> </x-slot> <div class="py-2"> <div class="mx-auto sm:px-2 lg:px-2"> <div class="bg-white overflow-hidden shadow-xl sm:rounded-lg"> <div class="flex

Error executing NPM INSTALL inside Homestead

我的未来我决定 提交于 2021-01-29 15:32:35
问题 We are developing an app in Laravel, and we created a new project, we have an error when trying to run NPM INSTALL inside Homestead. **We are using: Vagrant 2.2.9 NPM 6.14.10 Node 12.20.0 The last homestead version We tried: Deleting node_modules Deleting composer.json.lock Cleaning cache Reinstalling the virtual machine with the last version And other stackoverflows. But the solutions dont work. And we can't run npm install. The error is: no such file or directory open 'home/vagrant/code

Failed to load excel\laravel-excel

六月ゝ 毕业季﹏ 提交于 2021-01-29 15:14:07
问题 I want to export only filtered data in view blade. I am using Laravel 7 and maatwebsite/excel 3.1 and PHP 7.4.2. I went through the documentation and applied this: View <a href="{!! route('users.export-filter') !!}" class="btn btn-success"> <i class="la la-download"></i> Export Filter </a> web.php Route::get('/users/export-filter', 'Admin\UserController@filter')->name('users.export-filter'); UserController.php public function filter() { return Excel::download(new FilterUserExport, 'filter

Why is my validation rule not working in my Laravel Controller?

白昼怎懂夜的黑 提交于 2021-01-29 15:10:41
问题 I am trying to write a test that checks that a date is formatted correctly. Looking at the docs it seems pretty straight-forward. Here is my test. I am submitting an invalid date format to my controller: MyTest.php /** @test */ public function a_date_must_be_formatted_correctly() { $foo = factory(Foo::class)->raw([ 'date' => date('d/m/Y'), ]); $response = $this->postJson('api/v1/foo', $foo) ->assertStatus(422) ->assertJsonValidationErrors('date'); } Here is my controller method: public