This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form id="contact" name="contact" method="post"> | |
| <fieldset> | |
| <label for="name" id="name">Name<span class="required">*</span></label> | |
| <input type="text" name="name" id="name" size="30" value="" required/> | |
| <label for="email" id="email">Email<span class="required">*</span></label> | |
| <input type="text" name="email" id="email" size="30" value="" required/> | |
| <label for="phone" id="phone">Phone</label> | |
| <input type="text" name="phone" id="phone" size="30" value="" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| work_content: Array[4] | |
| Object 0: | |
| acf_fc_layout: "content_area" | |
| text: "<p>test text</p>↵" | |
| Object 1: Object | |
| acf_fc_layout: "gallery" | |
| images: | |
| Object 2: Object | |
| acf_fc_layout: "full_screen_video" | |
| video_url: "<iframe width="560" type="text/html" height="315" id="windows" src="//www.youtube.com/embed/1S7He-ShRLg?version=3&enablejsapi=1&html5=1" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "ID": 4434, | |
| "title": "new brand case", | |
| "status": "publish", | |
| "type": "case-studies", | |
| "author": {}, | |
| "content": "<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Maecenas sed diam eget risus varius blandit sit amet non magna.</p>\n", | |
| "parent": null, | |
| "link": "http://wmh.dev/case-studies/new-brand-case/", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| folders: | |
| - map: /Freelance/scoff-api/scoff-api | |
| to: /Freelance/scoff-api/scoff-api | |
| sites: | |
| - map: scoff_api.local | |
| to: /Freelance/scoff-api/scoff-api/public | |
| databases: | |
| - homestead |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App; | |
| use Illuminate\Database\Eloquent\Model; | |
| class Offer extends Model | |
| { | |
| /** | |
| * The database table used by the model. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App; | |
| use Illuminate\Database\Eloquent\Model; | |
| class Offer extends Model | |
| { | |
| /** | |
| * The database table used by the model. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $path = str_replace("/home/vagrant/projects/scoff/scoff-api/public", "", public_path('images/offers')); | |
| Image::make($file->getRealPath()) | |
| ->resize(600, 600) | |
| ->save(public_path('images/offers').$filename); | |
| $data['image'] = $path.$filename; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //include the class you created | |
| use App\Navigation | |
| public function index(Navigation, $navigation) | |
| { | |
| // location var to use in the blade template | |
| $nav = Navigation; | |
| //compact the nav for use in views which passes it through | |
| return view('your.view', compact('nav')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Show all offers queries by current date | |
| * | |
| * Get a JSON representation of all the offers. | |
| * @Get("/") | |
| * @Versions({"v1"}) | |
| */ | |
| public function getOffers(Offer $offer) |