Skip to content

Instantly share code, notes, and snippets.

Laracasts laracasts

Block or report user

Report or block laracasts

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
laracasts / modal.blade.php
Last active Aug 20, 2019
Modals with Zero JavaScript
View modal.blade.php
<div id="{{ $name }}" class="overlay">
<a href="#" class="cancel"></a>
<div class="modal">
{{ $slot }}
<a href="#" class="close">&times;</a>
laracasts / Accordion.vue
Created May 25, 2018 - episode 41 source code.
View Accordion.vue
v-for="(item, index) in items"
:is-open="activeItemIndex == index"
laracasts / vue-custom-input-component-exercise.js
Created Jan 9, 2017 - Custom Input Components exercise.
View vue-custom-input-component-exercise.js
Vue.component('coupon', {
props: ['code'],
template: `
<input type="text"
View webpack.config.js
let webpack = require('webpack');
let path = require('path');
module.exports = {
entry: {
app: './resources/assets/js/app.js',
vendor: ['vue', 'axios']
output: {
laracasts / Alert.vue
Created Mar 15, 2016
Alert .vue example.
View Alert.vue
<div class="Alert Alert--{{ type | capitalize }}">
export default {
props: {
type: {
View sublime-user-setting.json
"auto_complete_selector": "source, text",
"bold_folder_labels": true,
"color_scheme": "Packages/Colorsublime-Themes/Facebook.tmTheme",
"font_face": "Fira Code",
"font_options": [],
laracasts / ex.php
Last active Aug 29, 2015
Working on integration testing helper for PHPUnit.
View ex.php
class ExampleTest extends IntegrationTest
/** test */
public function it_verifies_that_pages_load_properly()
laracasts / pivot-generator.php
Last active Sep 14, 2018
Artisan Pivot Migration Generator
View pivot-generator.php
namespace App\Console\Commands;
use Illuminate\Console\GeneratorCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
class PivotMigrationMakeCommand extends GeneratorCommand
laracasts / gist:f4a304232c1be6dbb4f8
Last active Jul 15, 2019
Laracasts PHPStorm theme.
View gist:f4a304232c1be6dbb4f8
View ex.php
* Destroy the user's session (logout).
* @return Response
public function destroy()
flash()->info('You are now logged out.');
You can’t perform that action at this time.