not_regex validation

hi How to use not_regex for validation i'm using laravel 5.2 $this->validate($request, [ 'title' => 'required|not_regex:([0-9])', ]...
Mix
4
46

Laravel mix extract problem

I have this webpack.mix.js [ 'resources/js/vendor/jquery.js', 'resources/js/vendor/bootstrap.bundle.js', 'resou...
Mix
6
53

Can you add versioning to split JS files?

I added .version(); to my webpack file and it works nicely for app.js. However, since enabling the babel dynamic import plugin I note that all the split js files aren't ap...
Mix
0
11

Laravel mix upgrade best-practices

Hi. The Laravel upgrade guide doesn't mention upgrading package.json versions as it does for some composer.json components, namely la...
Mix
0
32

Mix extract with multiple files

Hey everyone, i have an issue with mix when extracting plugins... So, i am trying to extract vue and other plugins from the main file and put it on vendor.js but i h...
Mix
7
155

Using webp-loader

I want to copy-convert every jpg/png copied by mix to webp format. I already found a package for it:...
Mix
1
33

ES6 Class does not work in compiled js

Hi, i have this class in my /src/js/main.js class Point { constructor(x, y) { this.x = x; this.y = y; } toString() {...
Mix
1
22

BrowserSync hanging on Vue.js template errors

I have a Laravel 5.5 project with the out of the box tooling. In fact most of the vanilla configuration is the same; I have just added routes / models / service providers...
Mix
1
22

Laravel mix

gulpfile.js is not found in my laravel project 5.7....
Mix
3
39

Publish to REST API

I'm using the stand alone version of laravel-mix and I want to add the ability to publish my compiled items to my CMS. Is there a way to publish items via an API call?...
Mix
0
23

Uncaught TypeError: Illegal invocation

Hello guys, I am trying to store image using AJAX call in laravel. While I am requesting it is giving me an error of JQuery. I want to store my image on S3 bucket. I...
Mix
6
70

Laravel mix for dev and production

Hi, My dev experience is low, just started with Laracasts as complete beginner in coding. But I have some sysadmin exp. I have a Gitlab Ci/CD pipeline and building a...
Mix
4
55

Using img-loader with mix to minify and data-url svg images

I am attempting to minify .svg images and to replace the image path with the data-url string in the compiled stylesheet. What I have: The pre...
Mix
0
19

Base64 inline images in CSS with Mix

I'm new to Laravel and have been exploring Mix (and how it can best work for me) - so new to webpack too. In reading about webpack, I read that it can base64-encode...
Mix
6
89

Issue with CKeditor

Hi; I usually use npm to add js packages. This time I decided to add something manually. The candidate is...
Mix
1
42

CSS Modules in Blade

Hi guys, I would like to use my css modules, that i use in my javascript, also within my blade files. Any ideas?...
Mix
3
118

Elixir : Delete all comments in Js and CSS files

Hi, How can I delete all comments in my css and js file and use maximum minification, I tried gulp --production but comment still in files. Thank...
Mix
6
96

Yarn or NPM - I'm confused

I'm confused between yarn and npm. I get that yarn is a package manager like npm; but then how do I use it with Laravel mix? I've been doin...
Mix
2
66

Semantic UI Integration

Hello, I would like to use Semantic UI with my Laravel App (5.4) instead of using default Bootstrap. As I know Semantic UI is using LESS and recommended installation is via...
Mix
9
607

Laravel mix: how to exclude a SASS file from minifying for production

Hi folks, So I am running Laravel 5.4 and using Laravel Mix to compile my assets. I have two sass files for production, however, one of the files needs to be just co...
Mix
2
54
Create a New Discussion Button
Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels