#42 Dating/Social Networking in Laravel 5.7 / 5.8 | Insert Response | Contact Partner(IV)
In Part 42 of Dating series, we will continue working on Contact Profile or Partner functionality and this time we are going to add response from the sender to receiver in responses table but we are going to rename our dating5.7 folder to dating5.8
1) Rename Project folder :-
First of all, we will rename our dating5.7 project folder to dating5.8 but it will stop running after rename as it will keep picking the files from caches so we need to clear caches by following next step.
2) Rename config.php file :-
Now we will rename config.php file to config.php.old located at \bootstrap\cache folder and then try running project again.
Now we are going to add response from sender to receiver in responses table.
3) Update contact.blade.php file :-
We will update contact form at contact blade file with action, method, csrf token and will give name/id to textarea as shown in video.
4) Update contactProfile function :-
We will now update contactProfile function at UsersController to get data from response form and will add query to insert response data in responses table that we have added in last video.
5) Update Header Statement :-
Add below statement at the top of UsersController to include Response model :-
use App\Response;
6) Add Response Model :-
Don't forget to add Response model by running below artisan command :-
php artisan make:model Response
Now you can see response is getting added to the responses table.
7) Update contactProfile function :-
We will display the thanks message when message successfully send by the sender to receiver.
8) Update contact.blade.php file :-
Update contact blade file to show the success message to the sender as shown in video.
In next video, we will continue working on it.
Thanks for watching :)
Видео #42 Dating/Social Networking in Laravel 5.7 / 5.8 | Insert Response | Contact Partner(IV) канала Stack Developers
1) Rename Project folder :-
First of all, we will rename our dating5.7 project folder to dating5.8 but it will stop running after rename as it will keep picking the files from caches so we need to clear caches by following next step.
2) Rename config.php file :-
Now we will rename config.php file to config.php.old located at \bootstrap\cache folder and then try running project again.
Now we are going to add response from sender to receiver in responses table.
3) Update contact.blade.php file :-
We will update contact form at contact blade file with action, method, csrf token and will give name/id to textarea as shown in video.
4) Update contactProfile function :-
We will now update contactProfile function at UsersController to get data from response form and will add query to insert response data in responses table that we have added in last video.
5) Update Header Statement :-
Add below statement at the top of UsersController to include Response model :-
use App\Response;
6) Add Response Model :-
Don't forget to add Response model by running below artisan command :-
php artisan make:model Response
Now you can see response is getting added to the responses table.
7) Update contactProfile function :-
We will display the thanks message when message successfully send by the sender to receiver.
8) Update contact.blade.php file :-
Update contact blade file to show the success message to the sender as shown in video.
In next video, we will continue working on it.
Thanks for watching :)
Видео #42 Dating/Social Networking in Laravel 5.7 / 5.8 | Insert Response | Contact Partner(IV) канала Stack Developers
dating laravel social networking laravel insert response laravel dating rename laravel folder rename laravel website folder offline rename laravel project resolve laravel project issue contact partner laravel laravel folder rename contact profile laravel send response laravel send message laravel contact user laravel laravel 5.8 dating make dating website in laravel 5.8 create social networking website in laravel 5.8
Комментарии отсутствуют
Информация о видео
17 марта 2019 г. 7:27:42
00:26:03
Другие видео канала