-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLaravel.xml
112 lines (111 loc) · 9.75 KB
/
Laravel.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?xml version="1.0" encoding="UTF-8"?>
<templateSet group="Laravel">
<template name="resource" value="class $CLASSNAME$ extends \BaseController { 	/** 	 * Display a listing of the resource. 	 * 	 * @return Response 	 */ 	public function index() 	{ return \View::make('$COLL$.index');$END$ 	} 	/** 	 * Show the form for creating a new resource. 	 * 	 * @return Response 	 */ 	public function create() 	{ return \View::make('$COLL$.create'); 	} 	/** 	 * Store a newly created resource in storage. 	 * 	 * @return Response 	 */ 	public function store() 	{ 		// 	} 	/** 	 * Display the specified resource. 	 * 	 * @param int $id 	 * @return Response 	 */ 	public function show($id) 	{ return \View::make('$COLL$.show'); 	} 	/** 	 * Show the form for editing the specified resource. 	 * 	 * @param int $id 	 * @return Response 	 */ 	public function edit($id) 	{ return \View::make('$COLL$.edit'); 	} 	/** 	 * Update the specified resource in storage. 	 * 	 * @param int $id 	 * @return Response 	 */ 	public function update($id) 	{ 		// 	} 	/** 	 * Remove the specified resource from storage. 	 * 	 * @param int $id 	 * @return Response 	 */ 	public function destroy($id) 	{ 		// 	} }" description="Generate Resource Controller" toReformat="true" toShortenFQNames="true">
<variable name="CLASSNAME" expression="fileNameWithoutExtension()" defaultValue="ResourceController" alwaysStopAt="false" />
<variable name="COLL" expression=""collection"" defaultValue="collection" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="JSP" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="SQL" value="false" />
<option name="CUCUMBER_FEATURE_FILE" value="false" />
<option name="PHP" value="true" />
<option name="HAML" value="false" />
<option name="DART" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="model" value="use Eloquent; use Illuminate\Database\Eloquent\SoftDeletingTrait; class $CLASSNAME$ extends Eloquent { use SoftDeletingTrait; public $timestamps = true; // Fields that are guarded from mass assignment 	//protected $guarded = array('id'); 	 	// Fields that are opened for mass assignment 	protected $fillable = array(); 	protected $dates = ['deleted_at']; }" description="Generate Eloquent model" toReformat="true" toShortenFQNames="true">
<variable name="CLASSNAME" expression="fileNameWithoutExtension()" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="JSP" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="SQL" value="false" />
<option name="CUCUMBER_FEATURE_FILE" value="false" />
<option name="PHP" value="true" />
<option name="HAML" value="false" />
<option name="DART" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="seed" value="class $CLASSNAME$ extends \Seeder { 	public function run() 	{ 	 $data = array( 	 $END$ 	 ); 	 	 // DB::table('$TABLE$')->truncate(); 	 // DB::table('$TABLE$')->insert($data); 	} } " description="Generate seeder" toReformat="false" toShortenFQNames="true">
<variable name="CLASSNAME" expression="fileNameWithoutExtension()" defaultValue="" alwaysStopAt="false" />
<variable name="TABLE" expression=""table"" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="JSP" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="SQL" value="false" />
<option name="CUCUMBER_FEATURE_FILE" value="false" />
<option name="PHP" value="true" />
<option name="HAML" value="false" />
<option name="DART" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="migrate" value="use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class $CLASSNAME$ extends Migration { 	/** 	 * Run the migrations. 	 * 	 * @return void 	 */ 	public function up() 	{ 	 // create table 	 \Schema::create('$TABLENAME$', function(Blueprint $table) { $table->increments('id'); $END$ $table->timestamps(); }); 		 		/* 		// modify table 		\Schema::table('$TABLENAME$', function(Blueprint $table) { 			// alter 		}); 		*/ 	} 	/** 	 * Reverse the migrations. 	 * 	 * @return void 	 */ 	public function down() 	{ 	 // drop table 	 \Schema::drop('$TABLENAME$'); 	 	 /* 	 // modify table 		\Schema::table('$TABLENAME$', function(Blueprint $table) { 			// alter 		}); 		*/ 	} }" description="Generate DB migration" toReformat="false" toShortenFQNames="true">
<variable name="CLASSNAME" expression="fileNameWithoutExtension()" defaultValue="" alwaysStopAt="false" />
<variable name="TABLENAME" expression=""table"" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="JSP" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="SQL" value="false" />
<option name="CUCUMBER_FEATURE_FILE" value="false" />
<option name="PHP" value="true" />
<option name="HAML" value="false" />
<option name="DART" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="sp" value="use Illuminate\Support\ServiceProvider; class $CLASSNAME$ extends ServiceProvider { /** * Register the service provider. * * @return void */ public function register() { $END$// TODO: Implement register() method. } /** * Bootstrap the application events. * * @return void */ public function boot() { parent::boot(); } /** * Get the services provided by the provider. * * @return array */ public function provides() { return parent::provides(); } /** * Get the events that trigger this service provider to register. * * @return array */ public function when() { return parent::when(); } }" description="Generate ServiceProvider" toReformat="false" toShortenFQNames="true">
<variable name="CLASSNAME" expression="fileNameWithoutExtension()" defaultValue="" alwaysStopAt="false" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="JSP" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="SQL" value="false" />
<option name="CUCUMBER_FEATURE_FILE" value="false" />
<option name="PHP" value="true" />
<option name="HAML" value="false" />
<option name="DART" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
</templateSet>