Skip to content

Controller resource#17

Merged
aryarm merged 7 commits intolaravel_devfrom
Controller_Resource
Nov 5, 2017
Merged

Controller resource#17
aryarm merged 7 commits intolaravel_devfrom
Controller_Resource

Conversation

@iampham
Copy link
Copy Markdown
Contributor

@iampham iampham commented Oct 29, 2017

No description provided.

*/
public function show(Resource $resource)
{
return view('resource', ['resource' fdskoafkeiopsajefiwaojfeiowajfeopwuaj8feo[waujf8eioajfo]] )
Copy link
Copy Markdown
Member

@aryarm aryarm Oct 30, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change this so that you're passing the resource name into resource.blade.php as a variable.
you can get the name of the resource by doing $resource->name

Copy link
Copy Markdown
Member

@aryarm aryarm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay! It's good

@aryarm aryarm merged commit 5816c07 into laravel_dev Nov 5, 2017
@aryarm aryarm deleted the Controller_Resource branch November 5, 2017 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants