File tree Expand file tree Collapse file tree 1 file changed +15
-14
lines changed
Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,21 @@ protected function buildClass($name)
5252
5353 return $ stub ;
5454 }
55+
56+ /**
57+ * Get the stub file for the generator.
58+ *
59+ * @return string
60+ */
61+ protected function getStub ()
62+ {
63+ $ config = $ this ->laravel ['config ' ];
64+
65+ return $ config ->get ('datatables-buttons.stub ' )
66+ ? base_path () . $ config ->get ('datatables-buttons.stub ' ) . '/html.stub '
67+ : __DIR__ . '/stubs/html.stub ' ;
68+ }
69+
5570 /**
5671 * Parse the name and format according to the root namespace.
5772 *
@@ -76,18 +91,4 @@ protected function qualifyClass($name)
7691
7792 return $ this ->getDefaultNamespace (trim ($ rootNamespace , '\\' )) . '\\' . $ name ;
7893 }
79-
80- /**
81- * Get the stub file for the generator.
82- *
83- * @return string
84- */
85- protected function getStub ()
86- {
87- $ config = $ this ->laravel ['config ' ];
88-
89- return $ config ->get ('datatables-buttons.stub ' )
90- ? base_path () . $ config ->get ('datatables-buttons.stub ' ) . '/html.stub '
91- : __DIR__ . '/stubs/html.stub ' ;
92- }
9394}
You can’t perform that action at this time.
0 commit comments