@tykus_ikus all ready and updated for you - finally.
@tykus_ikus please let me know what's up with your pull request when you can? thanks. No rush of course - just want to know how things are going.
I've pushed to your branch. Have a read through the commits I made.
You will need to composer dump-autoload and php artisan migrate:refresh --seed
Okay sure i will do that tomorrow and let you know whats up. Thanks and good night. @tykus_ikus
@tykus_ikus In the DashboardController.php - what does that code line mean?
$expectations = Expectation::all();
In DashboardController.php:
<p>
A) I am a:
{!! Form::radio('gender','male',['class'=>'form-control']) !!} Male
{!! Form::radio('gender','female',['class'=>'form-group']) !!} Female
<!-- you have got to associate a value with the gender input -->
</p>
Did not get your note here. did you mean I should gather both options under the same class name?
After cloning I get this error when trying to run - sudo artisan migrate:rollback --seed :
[RuntimeException]
The "--seed" option does not exist.
Also when trying access any view in the app - I get this error:
RuntimeException in EncryptionServiceProvider.php line 29: No supported encrypter found. The cipher and / or key length are invalid.
Basically this is where I stand right now.
Appreciate your help.
$expectations = Expectation::all(); will get all of the Expectation options in the expectationstable - you need to pass a variable to the view with these expectations in order to create the checkboxes. The beauty of this approach is you can easily add or delete expectations without touching your code - just add/edit/delete on the expectations table.
You previously were not sending any value in the form data when the male/female was selected... just to illustrate below, if the Male option is selected, then 'male'is sent as the gender value; otherwise for the female option, null would be sent.
{!! Form::radio('gender','male',['class'=>'form-control']) !!} Male
{!! Form::radio('gender', null,['class'=>'form-group']) !!} Female
You should be running php artisan migrate:refresh --seed?
Last one... Don't know why your .env file would not be present if you just pulled from your own repo? Check that your .env file is present and that there is a random string against the APP_KEYkey. You can also run php artisan key:generate to create a new one (just be sure that .env exists first!)
Got it all. thanks so much. How do you call this approach? seems lovely.
About the gender section and generally - should I group multiple related radio buttons under the same class name?
I have ran both commands finally successfully.
How would you suggest me to create a follow feature just like twitter in my app? that's the next thing to do here. I mean that I need the core concepts and state of mind for this kind of programming so I will need to be sure for that. Thanks a lot.
Please or to participate in this conversation.