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
| <a href="{{ route('logout') }}" class="dropdown-item" | |
| onclick="event.preventDefault();document.getElementById('logout-form').submit();"> | |
| Logout | |
| </a> | |
| <form id="logout-form" action="/auth/logout" method="POST" | |
| style="display: none;"> | |
| {{ csrf_field() }} | |
| </form> |
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 Rede\Controllers; | |
| use Illuminate\Http\Request; | |
| use Rede\Jobs\EmailInvite; | |
| use Rede\Models\Eloquent\Invite; | |
| use Rede\Models\Eloquent\Time; | |
| use Rede\Models\Eloquent\User; | |
| use Rede\Requests\InviteRequest; |
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
| @extends('rede.time.show') | |
| @section('botoes') | |
| @parent | |
| <a href="{{URL::route('redes.time.redes',$time->id)}}" class="btn btn-success"><i class="fa fa-network"></i> Redes | |
| <span class="badge">{{ $time->size_redes }}</span></a> | |
| <a href="{{URL::route('redes.time.members',$time->id)}}" class="btn btn-info"><i class="fa fa-network"></i> Membros | |
| <span class="badge">{{ $time->size }}</span></a> | |
| @stop | |
| @section('parcial') | |
| @include('partials.hr-divider',['msg'=>'Convidar Membros']) |
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 | |
| function convertUtf8($data, $original = null) | |
| { | |
| foreach ($data as $key => $value) { | |
| if (is_array($value)) { | |
| $data[$key] = convertUtf8($value, $original); | |
| } else { | |
| try { | |
| $data[$key] = mb_convert_encoding($value, 'UTF-8', $original ?: mb_detect_encoding($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
| <?php | |
| use Illuminate\Http\Request; | |
| $fakeRequest = \Mockery::spy(Request::class); | |
| $fakeRequest->shouldReceive('all')->andReturn(['foo' => 'bar', 'bar' => 'baz']); | |
| $this->app->instance('request', $fakeRequest); | |
| dd(request()->all()); //['foo' => 'bar', 'bar' => 'baz'] |
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
| pdftops file14.pdf file.ps | |
| ps2pdf13 file.ps file13.pdf | |
| #pdftops is part of poppler-utils, you probably already have it ... if not install by: | |
| sudo apt-get install poppler-utils | |
| #ps2pdf (and ps2pdf12, ps2pdf13 ps2pdf14) are scripts supplied with the ghostscript package. Install by: | |
| sudo apt-get install ghostscript |
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 | |
| /** | |
| * $mailer = new InMemoryInbox; | |
| * $this->app->instance('mailer', $mailer); | |
| * | |
| * assert -- $mailer->hasMessageFor('e@mail.com') | |
| */ | |
| namespace Tests\Helpers; |
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
| protected function makeRememberKey(){ | |
| $url = request()->url(); | |
| $queryParams = request()->query(); | |
| ksort($queryParams); | |
| $queryString = http_build_query($queryParams); | |
| $fullUrl = "{$url}?{$queryString}"; |
NewerOlder