JeffreyWay

Founder at Laracasts

Experience

438,060

329 Best Reply Awards

  • Member Since 4 Years Ago
  • 209 Lessons Completed
  • 54 Favorites

2nd May, 2018

JeffreyWay left a reply on XP System Broken • 3 months ago

The best reply award count is now correct for everyone. That number is based on all threads that currently have your reply as the best one.

Before, we wouldn’t decrement your award count if a thread author changed their mind about the best reply. Now we do.

JeffreyWay left a reply on XP System Broken • 3 months ago

Fake accounts were created that disproportionately liked the replies of certain accounts here.

I deleted those accounts, and am adjusting all stats to be what they should have been.

12th March, 2018

JeffreyWay left a reply on Whats New In Laravel 5.6 Series • 5 months ago

I plan on tackling that this week, but 5.6 isn't a huge release to begin with.

15th January, 2018

JeffreyWay started a new conversation Work For Laracasts (Web Designer) • 7 months ago

Hi, all. Jeffrey (Laracasts Owner) here.

Laracasts is in need of a web designer for a part-time three month contract to help out with various projects - everything ranging from designing basic YouTube banner ads, to series thumbnails, to full website demos and open source projects UIs.

Pay

The job pays a flat rate of $2,000 per month for 10 hours a week worth of work. As long as the projects I assign are completed in a reasonable amount of time, you may choose your work hours.

To start, this job assumes a three month contract. Depending on various factors, this might be extended beyond that, if you wish. (However, no guarantees.)

To Apply

  • Email [email protected] with the subject "Web Designer Job"
  • Include a few sentences about who you are, and what your experience level is. Please keep it short.
  • Include a link to one or more design projects you have worked on, or are responsible for.
  • Design and attach a custom series thumbnail for any series here Laracasts. You can view a list here: https://laracasts.com/series?curated

5th January, 2018

JeffreyWay left a reply on Wordpress As Homepage On A Laravel Application? • 7 months ago

@dbapro - Most of your comments on this forum are rude or sarcastic. Stop it.

The mean-spirited nature of your comments says far more about you than it does the skill level of the people you're speaking to.

21st November, 2017

JeffreyWay left a reply on I'm Not Overly Impressed With Laracasts... "laravel New App" = -bash: Laravel: Command Not Found • 8 months ago

@kvnkrft You haven't added the Composer global vendor directory to your path. I covered this here:

https://laracasts.com/series/laravel-from-scratch-2017/episodes/1?time=3:55

I recommend going through the video from scratch one more time. Every issue you're experiencing was covered in the video.

JeffreyWay left a reply on I'm Not Overly Impressed With Laracasts... "laravel New App" = -bash: Laravel: Command Not Found • 8 months ago

He has a directory called "code" I believe, but I didn't... anyhow.

You don't need a directory, called "code." It's just a folder name. Create it.

"laravel" returns: -bash: laravel: command not found

Sounds like you didn't properly install the Laravel executable. We cover how here: https://laracasts.com/series/laravel-from-scratch-2017/episodes/1?time=2:23

14th November, 2017

JeffreyWay left a reply on No Offence... Just A Question! • 9 months ago

Two milliseconds is :( ??

10th November, 2017

JeffreyWay left a reply on Praetorian • 9 months ago

You never know...

30th October, 2017

JeffreyWay left a reply on PI Button Bottom Right On Laracasts • 9 months ago

I wonder what it could be...

24th October, 2017

JeffreyWay left a reply on How Does Reply Get Added To Correct Thread In This Test? • 9 months ago

Notice that we call the factory’s make method instead of create. What actually adds the reply to the thread page is the post request, where we send through the attributes for the reply.

19th October, 2017

JeffreyWay left a reply on Profile • 10 months ago

Thanks, guys. This is fixed now.

13th October, 2017

JeffreyWay left a reply on Profile • 10 months ago

Some people want their profile private.

JeffreyWay left a reply on Lesson Request: Testing Vue • 10 months ago

12th October, 2017

JeffreyWay left a reply on Tweaking The Layout • 10 months ago

@Corban @bashy Double post bug is fixed. Was related to a sporadic faulty left join. :|

11th October, 2017

JeffreyWay left a reply on Tweaking The Layout • 10 months ago

If at all possible, I would love to see this as something we could set in our preferences.

No plans to make a two column layout configurable settings.

As a side note, I cannot figure out how to tell if someone has @-ed you. Is there any kind of notification system that I've just been missing this whole time?

You'll see a bell over your username in the nav-bar if you've been mentioned.

3rd July, 2017

JeffreyWay left a reply on Laravel-mix Generate Js File But Browser Not Detect That Functions. • 1 year ago

We're going to need more information. This is difficult to understand.

23rd June, 2017

JeffreyWay left a reply on Laravel Training • 1 year ago

@teckel - Thanks so much for the nice words. :|

If you've built thousands of apps since 1997, but can't piece together how to write a simple CRUD app in Laravel, then I think you're not being truthful about your experience here...

14th June, 2017

JeffreyWay started a new conversation Testing • 1 year ago

Testing

8th May, 2017

JeffreyWay left a reply on Blade Braces In A Thread Title Breaks The Page • 1 year ago

Fixed. :) Thanks.

26th April, 2017

JeffreyWay left a reply on Custom "type" To The Class • 1 year ago

@theUnforgiven Yep. Or wrap it in a little server-side flash() function that does it for you.

function flash($message, $type = 'success') {
    session()->flash('flash', $message);
    session()->flash('flashType', $type);
}

//

flash('Welcome Aboard', 'success');

return redirect('/');

JeffreyWay left a reply on Custom "type" To The Class • 1 year ago

@theUnforgiven I'd probably do something like along the lines of this:

<template>
    <div :class="classes" role="alert" v-show="show">
        <strong>Success!</strong> {{ body }}
    </div>
</template>

<script>
    export default {
        props: ['message', 'type'],

        data() {
            return {
                body: '',
                style: '',
                show: false
            }
        },

        computed: {
            classes() {
                return [
                    'alert',
                    `alert-${this.style}`,
                    'alert-flash'
                ];
            }
        },

        created() {
            if (this.message) {
                this.flash(this.message, this.type);
            }

            window.events.$on(
                'flash', (message, type) => this.flash(message, type)
            );
        },

        methods: {
            flash(message, type) {
                this.body = message;
                this.show = true;
                this.style = (type || 'success');

                this.hide();
            },

            hide() {
                setTimeout(() => {
                    this.show = false;
                }, 3000);
            }
        }
    };
</script>

<style>
    .alert-flash {
        position: fixed;
        right: 25px;
        bottom: 25px;
    }
</style>

Usage:

flash('A message here', 'warning');

30th March, 2017

JeffreyWay left a reply on How Do Disable Live Reload When Running Npm Run Watch? • 1 year ago

It's not on by default, so not sure what you're asking.

23rd March, 2017

JeffreyWay left a reply on Can I Keep Using Elixir/Gulp After Migrating To Laravel 5.4? • 1 year ago

Yes, you may freely use any tool that you want.

22nd March, 2017

JeffreyWay left a reply on Laravel Forge Is Down. 22 March 2017 • 1 year ago

It's all related to that Ubuntu security update. They broke everything again today, when they reverted their mistake from yesterday. So weird...

13th March, 2017

JeffreyWay left a reply on Laravel Mix And PhpUnit • 1 year ago

No. It doesn't make much sense for a tool like Webpack.

6th March, 2017

JeffreyWay left a reply on Laravel 5.4 Dev Npm Run Dev Error • 1 year ago

@AccAdmin - It's because you have two different versions installed. Over the weekend, the cross-env team changed then path to to their bin directory, which we were referencing. You can fix this by doing npm install cross-env, and then updating your package.json npm script to be:

cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

JeffreyWay left a reply on Why Laravel Dropped Elixir? Why Forcing Vue.js? What Is It That You Are Trying To Fix? • 1 year ago

@antraacks

It's just weird to me no other framework does this.

Imagine Django promoting Angular or Ruby On Rails Promoting React.

Rails is famous for promoting JS frameworks. Bad example.

and yes I can go and delete everything and keep my original package but if something is not broke what exactly are you guys fixing?

Dude, we're trying to make it easier to build applications. The core team likes Vue a lot and think it pairs well with Laravel. So we include a couple lines in a package.json file to get you started. Delete them, if you love Angular. Done.

JeffreyWay left a reply on Why Laravel Dropped Elixir? Why Forcing Vue.js? What Is It That You Are Trying To Fix? • 1 year ago

For all we know, there can be nothing except that they like VueJS or feel it guides/helps majority of users to build complete applications..

Or perhaps there is more behind the scenes, maybe Taylor has a stake in VueJS, or maybe Laravel is sponsored by VueJS,..

Guys, take your tinfoil hats off.

JeffreyWay left a reply on Why Laravel Dropped Elixir? Why Forcing Vue.js? What Is It That You Are Trying To Fix? • 1 year ago

@ANTRACKS Good grief.

But most major companies don't use Vue.js we use React or Angular.

Awesome. Then use React or Angular.

I can't remember on what version you guys started putting Vue in the package but ever since you guys started promoting it the support for other front end frameworks have gone to sht.

How so? Give examples? How is Laravel making it hard for you to include React in your projects??

Elixir worked perfectly there was no reason to drop it. Sass would compile super fast and even the largest react app now is 2x slower at compile.

Webpack is doing significantly more things than Elixir. But if Elixir was working great, use it. Nobody is making you do anything.

I want the old laravel back the one that I put neck on the line for.. the one that was a backend framework for php not a backend framework with a favorite front end framework.

Pro Tip: Delete the package.json file in a fresh Laravel app, and you have your old Laravel back.

But people come to you guys for the backend not to force down our throats VUE.JS!!!

Decaffeinated brands exist on the market.

I'll be honest this will be the last time I use laravel for any new project.

k.

2nd March, 2017

JeffreyWay left a reply on Laravel 5.4 Npm Run Watch Not Working • 1 year ago

Update node and npm. nodejs..org

JeffreyWay left a reply on How To Configure IncludePaths For SASS On Mix? • 1 year ago

I think you can do:

mix.sass('resources/assets/sass/app.scss', 'public/css', {
    includePaths: ["absolute/path/a", "absolute/path/b"]
});

JeffreyWay left a reply on Laravel Mix Versioning Issue • 1 year ago

@rachid_rafia I'm thinking that you have an old version of Laravel Mix installed. I just tried out your example code, and everything versioned properly.

https://www.dropbox.com/s/ca2md64krn5okc9/Screenshot%202017-03-02%2009.23.36.png?dl=0

For your other comment, if you're using a bunch of legacy plugins and scripts that weren't build with Webpack in mind, then mix.scripts() or mix.combine() (same thing) are what you want.

27th February, 2017

JeffreyWay left a reply on How To Write A Testimonial About This Site • 1 year ago

@CHIBYKE - You can shoot me an email and we'll add it to the testimonials page. :)

https://laracasts.com/contact

23rd February, 2017

JeffreyWay left a reply on Mix - Combine All Js In Folder • 1 year ago

@stwilson - You're using an old version of Laravel Mix. Do npm update laravel-mix.

JeffreyWay left a reply on Laravel 5.4 Errors On Npm Run Dev Error: Cannot Find Module '\..\$npm_package_config_webpack' • 1 year ago

@ANIMALINSTINCT For your first issue, it turns out that referencing Node config variables requires a completely different syntax in Windows, versus Mac or Linux. This has been fixed.

Update your package.json to look like this:

  "scripts": {
    "dev": "node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "watch": "node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "watch-poll": "node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --watch-poll --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "hot": "node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
    "production": "node node_modules/cross-env/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
  }

Also, run npm update laravel-mix.

21st February, 2017

JeffreyWay left a reply on Laravel Mix And React Js • 1 year ago

Update Laravel Mix.

20th February, 2017

JeffreyWay left a reply on Laravel Mix And React Js • 1 year ago

@VernonGrant Yeah the GitHub repo will have the latest docs, but I have a todo item to update the Laravel.com docs with some of the new stuff in the last few weeks.

JeffreyWay left a reply on Laravel Mix And React Js • 1 year ago

mix.react('src', 'output');

JeffreyWay left a reply on Mix - Combine All Js In Folder • 1 year ago

mix.combine(['public/js/*'], 'public/combined.js');

Though you should be careful. Often, JavaScript files need to be loaded in the proper order.

JeffreyWay left a reply on Webpack Compile Order • 1 year ago

This is a Webpack-specific issue. There's an issue to get it fixed.

https://github.com/webpack/webpack/issues/215

JeffreyWay left a reply on Can I Version Specific File In Laravel Mix? • 1 year ago

Yes -

mix.version(['path/to/files.js']);

18th February, 2017

JeffreyWay left a reply on Laravel 5.4 MIX + Stylus • 1 year ago

@Dima I guess they haven't updated it yet.

https://www.dropbox.com/s/ofcoszi089n6fj8/Screenshot%202017-02-18%2013.24.59.png?dl=0

You can manually add it back in by doing:

col()
  column(arguments)

JeffreyWay left a reply on Laravel 5.4 MIX + Stylus • 1 year ago

@Dima - I think Jeet removed aliases like that with version 7, right?

JeffreyWay left a reply on Laravel 5.4 MIX + Stylus • 1 year ago

Rupture will automatically load in its mixins, so you don't need to explicitly import that. This setup is fully working for me.

https://www.dropbox.com/s/3e8i1filj6j1vu2/Screenshot%202017-02-18%2013.02.03.png?dl=0

webpack.mix.js

var mix = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

mix.stylus('resources/assets/stylus/app.styl', 'public/css', {
    use: [
        require('rupture')(),
        require('nib')(),
        require('jeet')()
    ],
    import: [
        '~nib/index.styl',
        '~jeet/jeet.styl'
    ]
});
``


#### resources/assets/stylus/app.styl

```js
#back-to-top
  fixed bottom right // nib

section
    center(960px) // jeet

.thing
    tablet() // rupture
        background: blue

public/css/app.css

#back-to-top {
  position: fixed;
  bottom: 0;
  right: 0;
}
section {
  width: auto;
  max-width: 960px;
  float: none;
  display: block;
  margin-right: auto;
  margin-left: auto;
  padding-left: 0;
  padding-right: 0;
}
section::after {
  content: '';
  display: table;
  clear: both;
}

JeffreyWay left a reply on Laravel 5.4 MIX + Stylus • 1 year ago

Sure.

var mix = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

mix.stylus('resources/assets/stylus/app.styl', 'public/css', {
    use: [
        require('rupture')() // npm install rupture
    ]
});

JeffreyWay left a reply on Laravel 5.4 MIX + Stylus • 1 year ago

@dima - Mix is significantly more powerful than Laravel Elixir. Stylus works with it out of the box.

laravel new project && cd project
npm install

Then update webpack.mix.js to be:

mix.stylus('resources/assets/stylus/app.styl', 'public/css');

And do npm run dev.

8th February, 2017

JeffreyWay left a reply on Just Combine Js-files • 1 year ago

Combining files isn't connected to your main Webpack bundle, so it should have no effect.

Is that the only thing in your webpack.mix.js file? Where is hammerjs coming from?

1st February, 2017

27th January, 2017

JeffreyWay left a reply on [5.4] Npm Run Watch Not Working • 1 year ago

@saaz I'd of course need more information to help debug. OS, Node/NPM version, etc. Using a VM or not?

Try adding the --watch-poll flag to your NPM script. Or just try:

node_modules/.bin/webpack --watch --watch-poll --config=node_modules/laravel-mix/setup/webpack.config.js
Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.