laravel-5.7

Signed route for email verification does not pass signature validation

老子叫甜甜 提交于 2020-01-11 10:23:28
问题 I recently updated my project from Laravel 5.6 to 5.7 and added the email verification steps described by Laravel docs to my project. Everything works great on my development machine (which is http) but when I update my production server (which is https) with all changes then when laravel sends me the email with the link (signed route) it generated for me to click button or paste into my browser laravel seems to not be able to validate the signature it created. The side effect is every time I

RuntimeException - Session store not set on request - Laravel Socialite - Facebook

给你一囗甜甜゛ 提交于 2020-01-06 07:38:06
问题 I'm using Laravel 5.7 and Laravel/Socialite 3.1 . I want to login using a Facebook app I just configured for this project. These are the main files I have configured for this: /.env ... FACEBOOK_CLIENT_ID=*** FACEBOOK_CLIENT_SECRET=*** FACEBOOK_CALLBACK_URL=http://localhost:8000/auth/facebook/callback /config/services.php <?php return [ ... 'facebook' => [ 'client_id' => env('FACEBOOK_CLIENT_ID'), 'client_secret' => env('FACEBOOK_CLIENT_SECRET'), 'redirect' => env('FACEBOOK_CALLBACK_URL'), ],

How to show data in database in Vue devtools?

会有一股神秘感。 提交于 2020-01-06 06:43:12
问题 When I click in Cars . I want show me the image below. Has anyone experienced this problem? I'm using Vue Devtools but can't inspect any components on a count of none are showing up. Advert.vue <template> <div> <ul class="list-group"> <li v-for="category in categories" @click="sendAdvert(category.id)" class="list-group-item display"> {{ category.name }} </li> </ul> </div> </template> <script> export default { props: ['categories'], data() { return { advert: [], } }, methods: { sendAdvert(id)

Base table or view not found: 1146 Table Laravel 5.7

懵懂的女人 提交于 2020-01-06 06:08:39
问题 Im getting this error when I try to save data to mysql using Laravel 5, other forms and save() methods work fine but this one: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'datatest.about_category' doesn't exist (SQL: insert into about_category ( about_id , category_id ) values (11, 4)) Here is my Controller store method: public function store(AboutRequest $request) { $about = new About(); $about->title = $request->title; $about->body = $request->body; $about->save(); $about-

Laravel caching Database queries

我是研究僧i 提交于 2020-01-06 04:33:13
问题 i have created the project with user roles and permissions Here is my Tables and Model users --list of the application users --Model Name [ User ], roles --list of the roles available inside the application --Model Name [ Role ], permissions --list of the Permisisons available inside the application --Model Name [ Permisions ], Here is my relationship tables role_user Which hold the relationship between the roles table and users table permission_role Which hold the relationship between the

How to debug Laravel Site show HTTP ERROR 500?

戏子无情 提交于 2020-01-03 05:19:11
问题 I'm on Laravel 5.7, and my app loading fine on my local Mac OSX. But on my production Ubuntu Server, I kept getting 500 permissions I've already chmod R 777 storage/ bootstrap/ vendor/ .env I also check my .env file, everything seem to be in place proper configured. nginx I checked in cd /var/log/nginx/ I see nothing there. laravel I checked /home/forge/bheng/storage/logs - nothing there also. composer.json { "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": [

can save when create new data, but can't calculated data by category

旧时模样 提交于 2020-01-03 02:37:25
问题 Model can save when create new data, but can't calculated data by category public static function findOrCreate($plan_id, $data) { $fromDate = Carbon::now()->subDay()->startOfWeek(); $nowDate = Carbon::now()->today(); $spent_time = static::where('plan_id', $plan_id)->first(); if (is_null($spent_time)) { return static::create($data); }else{ $new_spent_time = SpentTime::first(); $task_category = $new_spent_time->task_category; $new_spent_time->spent_time = $new_spent_time::where('task_category',

Laravel 5.7: Custom blade template for Maintenance Mode but not 503.blade.php

有些话、适合烂在心里 提交于 2020-01-03 01:56:07
问题 Every time php artisan down is turned on, Laravel displays 503 page. OK. I can customise it by creating new file called 503.blade.php inside resources/views/errors . However I don't consider Maintenance Mode as error at any point despite of the fact that it makes website unavailable for a client as well as despite of consistent description of HTTP 503: The 503 Service Unavailable error is a server-side error, meaning the problem is usually with the website's server. ... Even though the 503

How to queue Laravel 5.7 “email verification” email sending

无人久伴 提交于 2020-01-02 08:14:14
问题 Laravel 5.7 included "email verification" feature works well but not async email sending (during user register or resend link page) is not ideal. Is there any way to send the email verification email through a queue without rewrite whole email verification in Laravel 5.7 ? 回答1: Yes! It's possible. And to do that you will have to rewrite the sendEmailVerificationNotification in your App\User . This method is provide by the Illuminate\Auth\MustVerfiyEmail trait. The method

Route [user.verification.notice] not defined / Override EnsureEmailIsVerified?

时光总嘲笑我的痴心妄想 提交于 2019-12-25 01:07:42
问题 I've been trying to implement multiple authentication login and registration is working fine in both group but verification route is not working after user registration. Is there any way possible to do this ? This is my route Route::group([ 'prefix' => 'users', 'namespace' => 'Users', 'as' => 'user.' ],function(){ Auth::routes(['verify' => true]); Route::get('/','Main@index'); Route::get('/dashboard','Main@index')->name('dashboard'); }); Route::group([ 'prefix' => 'admins', 'namespace' =>