Support the ongoing development of Laravel.io →
posted 10 years ago
Eloquent
Last updated 2 years ago.
0

You need to update your composer.json classmap, before running dump-autoload. Inside composer.json file add the path to your class to this section

	"autoload": {
		"classmap": [
			"app/commands",
			...
			"app/path/to/your/class"
		]
	},

Here is a great example on how to build your custom filter class http://daylerees.com/codebright/filters

Last updated 2 years ago.
0

DavidDomain said:

You need to update your composer.json classmap, before running dump-autoload. Inside composer.json file add the path to your class to this section

  "autoload": {
  	"classmap": [
  		"app/commands",
  		...
  		"app/path/to/your/class"
  	]
  },

Here is a great example on how to build your custom filter class http://daylerees.com/codebright/filters

Thank you for your replay. I found the same file in the gibhub i replaced it and worked without to add it in the composer

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

giwrgos88 giwrgos88 Joined 12 Jun 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.