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="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request | |
| - Or, request confirmation in the process - | |
| <a href="posts/2" data-method="delete" data-confirm="Are you sure?"> | |
| */ | |
| (function() { |
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\Support\Str; | |
| use Illuminate\Support\Facades\Route; | |
| Route::get('/', function () { | |
| return view('welcome'); | |
| }); | |
| Route::get('/names', function () { |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Demo</title> | |
| </head> | |
| <body> | |
| <?php | |
| $books = [ |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Episode 1: The Absolute Basics</title> | |
| <script src="https://unpkg.com/vue@3"></script> | |
| </head> | |
| <body> | |
| <div id="app"> | |
| <p> |
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\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Http\Response; | |
| use Symfony\Component\DomCrawler\Crawler; | |
| class PjaxMiddleware |
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 | |
| $books = [ | |
| [ | |
| 'name' => 'Do Androids Dream of Electric Sheep', | |
| 'author' => 'Philip K. Dick', | |
| 'releaseYear' => 1968, | |
| 'purchaseUrl' => 'http://example.com' | |
| ], | |
| [ |
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 | |
| class BaseModel extends Eloquent { | |
| public static function shouldReceive() | |
| { | |
| $repo = get_called_class() . 'RepositoryInterface'; | |
| $mock = Mockery::mock($repo); | |
| App::instance($repo, $mock); |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Demo</title> | |
| </head> | |
| <body> | |
| <h1> | |
| <?= 'Hello World' ?> | |
| </h1> |
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
| <x-layout> | |
| <x-section> | |
| <x-tabs active="First"> | |
| <x-tab name="First"> | |
| First content goes here. | |
| </x-tab> | |
| <x-tab name="Second"> | |
| Second content goes here. | |
| </x-tab> |
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
| <div class="bg-gray-200 p-4 rounded block relative"> | |
| <h2 class="font-bold"> | |
| <a href="https://laracasts.com/discuss/channels/laravel"> | |
| Laravel | |
| <span class="absolute inset-0"></span> | |
| </a> | |
| </h2> | |
| <p class="mt-3"> | |
| A web application framework with expressive, elegant syntax. |
NewerOlder