PHP Exam Questions and Correct
Answers
Foreign key relationships can only be formed if the data types are equal - Answer-t
The advantage of the share() method vs. the composer() method is that the share method allows you to
specify which views will recieve the data - Answer-f
Data can be passed to the view partial by passing a second argument in the blade directive - Answer-t
Many-to-Many relationships are not supported by Laravel - Answer-f
When using a belongsTo relationship from the child model, the associate() method may be used to
attach the foreign id of the parent model - Answer-t
To generate a complete set of resource routes, use Route::resource('resource','controller') - Answer-t
The share method is similar to View Composers except they act as a callback instead - Answer-f
Answers
Foreign key relationships can only be formed if the data types are equal - Answer-t
The advantage of the share() method vs. the composer() method is that the share method allows you to
specify which views will recieve the data - Answer-f
Data can be passed to the view partial by passing a second argument in the blade directive - Answer-t
Many-to-Many relationships are not supported by Laravel - Answer-f
When using a belongsTo relationship from the child model, the associate() method may be used to
attach the foreign id of the parent model - Answer-t
To generate a complete set of resource routes, use Route::resource('resource','controller') - Answer-t
The share method is similar to View Composers except they act as a callback instead - Answer-f