Загрузка...

#12 Make Dating / Social Networking Website in Laravel 5.6 | Dating Profile Under Review

In Part-12 of dating series, we will add review page that will come when user submits its dating profile for the first time. For that, we also need to add one more column in users_details table like status in which we will set 0 as default value and when admin will approve that profile from admin panel then that status will change to 1.

1) Update users_table (Manually)

We will add one column i.e. status with datatype tinyint and will set default value as 0.

2) Create Route :-

Now create GET route for review page in web.php like below :-

Route::get('/review','UsersController@review');

3) Create review Function :-

Now create review function in UsersController

4) Create review.blade.php file :-

Now create review.blade.php file under users folder that is under views folder. And make changes in review blade file by adding content from Gogru.in as shown in video.

(Open Gogru.in in any Proxy website like https://www.proxysite.com/ if not open directly)

5) Update step2 function :-

Now update step 2 function in UsersController to redirect the user to review blade file once he added his dating profile.

Now we need to update step2 function again to check if the dating profile of the user already exists and its under review then send him to review blade file that we have just created.

So, everything is working now as far as review blade file is concerned that is coming after submission of dating profile by the user but in next video we will do much more.

We will directly redirects the user to add its dating profile once he registers and we will also add jquery validations to dating profile and will show the users details in admin panel so that admin can review the profile and can approve it.

So stay tune for next video.. thanks for watching :)

Видео #12 Make Dating / Social Networking Website in Laravel 5.6 | Dating Profile Under Review канала Stack Developers
Яндекс.Метрика

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять