Skip to content

Instantly share code, notes, and snippets.

John T. Bonaccorsi imjohnbon

Block or report user

Report or block imjohnbon

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
View installing-stimulus-js-in-laravel.md

This gist was made for Laravel 5.7, although it should work for any version. It also assumes you have a Laravel site set up and configured on a basic level (you ran composer install, npm install, created an app key, etc).

  1. Run npm install stimulus

  2. Run npm install babel-plugin-transform-class-properties --save-dev

  3. Create .babelrc file in your project root, and paste in the following content:

{
View ResetsPasswords.php
<?php
namespace App;
use Illuminate\Http\Request;
use Illuminate\Mail\Message;
use Illuminate\Support\Facades\Password;
trait ResetsPasswords
{
You can’t perform that action at this time.