get('skip')) {
21 | $query->skip($request->get('skip'));
22 | }
23 | if ($request->get('limit')) {
24 | $query->limit($request->get('limit'));
25 | }
26 |
27 | $$MODEL_NAME_PLURAL_CAMEL$ = $query->get();
28 |
29 | return $this->sendResponse($$MODEL_NAME_PLURAL_CAMEL$->toArray(), '$MODEL_NAME_PLURAL_HUMAN$ retrieved successfully');
30 | }
31 |
32 | $DOC_STORE$
33 | public function store(Create$MODEL_NAME$APIRequest $request)
34 | {
35 | $input = $request->all();
36 |
37 | /** @var $MODEL_NAME$ $$MODEL_NAME_CAMEL$ */
38 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::create($input);
39 |
40 | return $this->sendResponse($$MODEL_NAME_CAMEL$->toArray(), '$MODEL_NAME_HUMAN$ saved successfully');
41 | }
42 |
43 | $DOC_SHOW$
44 | public function show($id)
45 | {
46 | /** @var $MODEL_NAME$ $$MODEL_NAME_CAMEL$ */
47 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::find($id);
48 |
49 | if (empty($$MODEL_NAME_CAMEL$)) {
50 | return $this->sendError('$MODEL_NAME_HUMAN$ not found');
51 | }
52 |
53 | return $this->sendResponse($$MODEL_NAME_CAMEL$->toArray(), '$MODEL_NAME_HUMAN$ retrieved successfully');
54 | }
55 |
56 | $DOC_UPDATE$
57 | public function update($id, Update$MODEL_NAME$APIRequest $request)
58 | {
59 | /** @var $MODEL_NAME$ $$MODEL_NAME_CAMEL$ */
60 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::find($id);
61 |
62 | if (empty($$MODEL_NAME_CAMEL$)) {
63 | return $this->sendError('$MODEL_NAME_HUMAN$ not found');
64 | }
65 |
66 | $$MODEL_NAME_CAMEL$->fill($request->all());
67 | $$MODEL_NAME_CAMEL$->save();
68 |
69 | return $this->sendResponse($$MODEL_NAME_CAMEL$->toArray(), '$MODEL_NAME$ updated successfully');
70 | }
71 |
72 | $DOC_DESTROY$
73 | public function destroy($id)
74 | {
75 | /** @var $MODEL_NAME$ $$MODEL_NAME_CAMEL$ */
76 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::find($id);
77 |
78 | if (empty($$MODEL_NAME_CAMEL$)) {
79 | return $this->sendError('$MODEL_NAME_HUMAN$ not found');
80 | }
81 |
82 | $$MODEL_NAME_CAMEL$->delete();
83 |
84 | return $this->sendSuccess('$MODEL_NAME_HUMAN$ deleted successfully');
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/api/controller/model_api_controller_resource.stub:
--------------------------------------------------------------------------------
1 | get('skip')) {
22 | $query->skip($request->get('skip'));
23 | }
24 | if ($request->get('limit')) {
25 | $query->limit($request->get('limit'));
26 | }
27 |
28 | $$MODEL_NAME_PLURAL_CAMEL$ = $query->get();
29 |
30 | return $this->sendResponse($MODEL_NAME$Resource::collection($$MODEL_NAME_PLURAL_CAMEL$), '$MODEL_NAME_PLURAL_HUMAN$ retrieved successfully');
31 | }
32 |
33 | $DOC_STORE$
34 | public function store(Create$MODEL_NAME$APIRequest $request)
35 | {
36 | $input = $request->all();
37 |
38 | /** @var $MODEL_NAME$ $$MODEL_NAME_CAMEL$ */
39 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::create($input);
40 |
41 | return $this->sendResponse(new $MODEL_NAME$Resource($$MODEL_NAME_CAMEL$), '$MODEL_NAME_HUMAN$ saved successfully');
42 | }
43 |
44 | $DOC_SHOW$
45 | public function show($id)
46 | {
47 | /** @var $MODEL_NAME$ $$MODEL_NAME_CAMEL$ */
48 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::find($id);
49 |
50 | if (empty($$MODEL_NAME_CAMEL$)) {
51 | return $this->sendError('$MODEL_NAME_HUMAN$ not found');
52 | }
53 |
54 | return $this->sendResponse(new $MODEL_NAME$Resource($$MODEL_NAME_CAMEL$), '$MODEL_NAME_HUMAN$ retrieved successfully');
55 | }
56 |
57 | $DOC_UPDATE$
58 | public function update($id, Update$MODEL_NAME$APIRequest $request)
59 | {
60 | /** @var $MODEL_NAME$ $$MODEL_NAME_CAMEL$ */
61 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::find($id);
62 |
63 | if (empty($$MODEL_NAME_CAMEL$)) {
64 | return $this->sendError('$MODEL_NAME_HUMAN$ not found');
65 | }
66 |
67 | $$MODEL_NAME_CAMEL$->fill($request->all());
68 | $$MODEL_NAME_CAMEL$->save();
69 |
70 | return $this->sendResponse(new $MODEL_NAME$Resource($$MODEL_NAME_CAMEL$), '$MODEL_NAME$ updated successfully');
71 | }
72 |
73 | $DOC_DESTROY$
74 | public function destroy($id)
75 | {
76 | /** @var $MODEL_NAME$ $$MODEL_NAME_CAMEL$ */
77 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::find($id);
78 |
79 | if (empty($$MODEL_NAME_CAMEL$)) {
80 | return $this->sendError('$MODEL_NAME_HUMAN$ not found');
81 | }
82 |
83 | $$MODEL_NAME_CAMEL$->delete();
84 |
85 | return $this->sendSuccess('$MODEL_NAME_HUMAN$ deleted successfully');
86 | }
87 | }
88 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/api/docs/controller/controller.stub:
--------------------------------------------------------------------------------
1 | /**
2 | * Class $MODEL_NAME$Controller
3 | * @package $NAMESPACE_API_CONTROLLER$
4 | */
5 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/api/docs/controller/destroy.stub:
--------------------------------------------------------------------------------
1 | /**
2 | * Remove the specified $MODEL_NAME$ from storage.
3 | * DELETE /$MODEL_NAME_PLURAL_CAMEL$/{id}
4 | *
5 | * @param int $id
6 | *
7 | * @throws \Exception
8 | *
9 | * @return Response
10 | */
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/api/docs/controller/index.stub:
--------------------------------------------------------------------------------
1 | /**
2 | * Display a listing of the $MODEL_NAME$.
3 | * GET|HEAD /$MODEL_NAME_PLURAL_CAMEL$
4 | *
5 | * @param Request $request
6 | * @return Response
7 | */
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/api/docs/controller/show.stub:
--------------------------------------------------------------------------------
1 | /**
2 | * Display the specified $MODEL_NAME$.
3 | * GET|HEAD /$MODEL_NAME_PLURAL_CAMEL$/{id}
4 | *
5 | * @param int $id
6 | *
7 | * @return Response
8 | */
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/api/docs/controller/store.stub:
--------------------------------------------------------------------------------
1 | /**
2 | * Store a newly created $MODEL_NAME$ in storage.
3 | * POST /$MODEL_NAME_PLURAL_CAMEL$
4 | *
5 | * @param Create$MODEL_NAME$APIRequest $request
6 | *
7 | * @return Response
8 | */
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/api/docs/controller/update.stub:
--------------------------------------------------------------------------------
1 | /**
2 | * Update the specified $MODEL_NAME$ in storage.
3 | * PUT/PATCH /$MODEL_NAME_PLURAL_CAMEL$/{id}
4 | *
5 | * @param int $id
6 | * @param Update$MODEL_NAME$APIRequest $request
7 | *
8 | * @return Response
9 | */
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/api/request/create_request.stub:
--------------------------------------------------------------------------------
1 | '$RAW_ROUTE_PREFIX$'], function () {
2 | Route::resource('$MODEL_NAME_PLURAL_SNAKE$', $NAMESPACE_API_CONTROLLER$\$MODEL_NAME$APIController::class);
3 | });
4 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/api/routes/routes.stub:
--------------------------------------------------------------------------------
1 | Route::resource('$MODEL_NAME_PLURAL_SNAKE$', $NAMESPACE_API_CONTROLLER$\$MODEL_NAME$APIController::class);
2 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/api/test/api_test.stub:
--------------------------------------------------------------------------------
1 | make()->toArray();
19 |
20 | $this->response = $this->json(
21 | 'POST',
22 | '/$API_PREFIX$/$ROUTE_PREFIX$$MODEL_NAME_PLURAL_SNAKE$', $$MODEL_NAME_CAMEL$
23 | );
24 |
25 | $this->assertApiResponse($$MODEL_NAME_CAMEL$);
26 | }
27 |
28 | /**
29 | * @test
30 | */
31 | public function test_read_$MODEL_NAME_SNAKE$()
32 | {
33 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::factory()->create();
34 |
35 | $this->response = $this->json(
36 | 'GET',
37 | '/$API_PREFIX$/$ROUTE_PREFIX$$MODEL_NAME_PLURAL_SNAKE$/'.$$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$
38 | );
39 |
40 | $this->assertApiResponse($$MODEL_NAME_CAMEL$->toArray());
41 | }
42 |
43 | /**
44 | * @test
45 | */
46 | public function test_update_$MODEL_NAME_SNAKE$()
47 | {
48 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::factory()->create();
49 | $edited$MODEL_NAME$ = $MODEL_NAME$::factory()->make()->toArray();
50 |
51 | $this->response = $this->json(
52 | 'PUT',
53 | '/$API_PREFIX$/$ROUTE_PREFIX$$MODEL_NAME_PLURAL_SNAKE$/'.$$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$,
54 | $edited$MODEL_NAME$
55 | );
56 |
57 | $this->assertApiResponse($edited$MODEL_NAME$);
58 | }
59 |
60 | /**
61 | * @test
62 | */
63 | public function test_delete_$MODEL_NAME_SNAKE$()
64 | {
65 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::factory()->create();
66 |
67 | $this->response = $this->json(
68 | 'DELETE',
69 | '/$API_PREFIX$/$ROUTE_PREFIX$$MODEL_NAME_PLURAL_SNAKE$/'.$$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$
70 | );
71 |
72 | $this->assertApiSuccess();
73 | $this->response = $this->json(
74 | 'GET',
75 | '/$API_PREFIX$/$ROUTE_PREFIX$$MODEL_NAME_PLURAL_SNAKE$/'.$$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$
76 | );
77 |
78 | $this->response->assertStatus(404);
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/app_base_controller.stub:
--------------------------------------------------------------------------------
1 | true,
35 | 'message' => $message
36 | ], 200);
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/docs/model.stub:
--------------------------------------------------------------------------------
1 | /**
2 | * Class $MODEL_NAME$
3 | * @package $NAMESPACE_MODEL$
4 | * @version $GENERATE_DATE$
5 | *
6 | $PHPDOC$ */
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/docs/repository.stub:
--------------------------------------------------------------------------------
1 | /**
2 | * Class $MODEL_NAME$Repository
3 | * @package $NAMESPACE_REPOSITORY$
4 | * @version $GENERATE_DATE$
5 | */
6 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/factories/model_factory.stub:
--------------------------------------------------------------------------------
1 | middleware('auth');
17 | }
18 |
19 | /**
20 | * Show the application dashboard.
21 | *
22 | * @return \Illuminate\Http\Response
23 | */
24 | public function index()
25 | {
26 | return view('home');
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/migration.stub:
--------------------------------------------------------------------------------
1 | $RELATION$(\$NAMESPACE_MODEL$\$RELATION_MODEL_NAME$::class$INPUT_FIELDS$);
7 | }
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/repository.stub:
--------------------------------------------------------------------------------
1 | fieldSearchable;
26 | }
27 |
28 | /**
29 | * Configure the Model
30 | **/
31 | public function model()
32 | {
33 | return $MODEL_NAME$::class;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/routes/user.stub:
--------------------------------------------------------------------------------
1 | Route::resource('users', 'UserController')->middleware('auth');
2 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/auth/email.stub:
--------------------------------------------------------------------------------
1 | @extends('layouts.auth_app')
2 | @section('title')
3 | Forgot Password
4 | @endsection
5 | @section('content')
6 |
7 |
8 |
9 |
10 | @if (session('status'))
11 |
12 | {{ session('status') }}
13 |
14 | @endif
15 |
31 |
32 |
33 |
34 | Recalled your login info?
Sign In
35 |
36 | @endsection
37 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/auth/reset.stub:
--------------------------------------------------------------------------------
1 | @extends('layouts.auth_app')
2 | @section('title')
3 | Reset Password
4 | @endsection
5 | @section('content')
6 |
56 |
57 | Recalled your login info?
Sign In
58 |
59 | @endsection
60 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/auth/verify.stub:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 |
3 | @section('content')
4 |
5 |
6 |
7 |
8 |
Verify Your Email Address
9 |
10 |
11 | @if (session('resent'))
12 |
A fresh verification link has been sent to
13 | your email address
14 |
15 | @endif
16 |
Before proceeding, please check your email for a verification link.If you did not receive
17 | the email,
18 |
click here to request another'.
19 |
20 |
21 |
22 |
23 |
24 | @endsection
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/auth/verify_6.stub:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 |
3 | @section('content')
4 |
5 |
6 |
7 |
8 |
Verify Your Email Address
9 |
10 |
11 | @if (session('resent'))
12 |
A fresh verification link has been sent to
13 | your email address
14 |
15 | @endif
16 |
Before proceeding, please check your email for a verification link.If you did not receive
17 | the email,
18 |
click here to request another'.
19 |
20 |
21 |
22 |
23 |
24 | @endsection
25 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/datatable.stub:
--------------------------------------------------------------------------------
1 | addColumn('action', '$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.datatables_actions');
22 | }
23 |
24 | /**
25 | * Get query source of dataTable.
26 | *
27 | * @param \App\Models\$MODEL_NAME$ $model
28 | * @return \Illuminate\Database\Eloquent\Builder
29 | */
30 | public function query($MODEL_NAME$ $model)
31 | {
32 | return $model->newQuery();
33 | }
34 |
35 | /**
36 | * Optional method if you want to use html builder.
37 | *
38 | * @return \Yajra\DataTables\Html\Builder
39 | */
40 | public function html()
41 | {
42 | return $this->builder()
43 | ->columns($this->getColumns())
44 | ->minifiedAjax()
45 | ->addAction(['width' => '120px', 'printable' => false])
46 | ->parameters([
47 | 'dom' => 'Bfrtip',
48 | 'stateSave' => true,
49 | 'order' => [[0, 'desc']],
50 | 'buttons' => [
51 | ['extend' => 'create', 'className' => 'btn btn-default btn-sm no-corner',],
52 | ['extend' => 'export', 'className' => 'btn btn-default btn-sm no-corner',],
53 | ['extend' => 'print', 'className' => 'btn btn-default btn-sm no-corner',],
54 | ['extend' => 'reset', 'className' => 'btn btn-default btn-sm no-corner',],
55 | ['extend' => 'reload', 'className' => 'btn btn-default btn-sm no-corner',],
56 | ],
57 | ]);
58 | }
59 |
60 | /**
61 | * Get columns.
62 | *
63 | * @return array
64 | */
65 | protected function getColumns()
66 | {
67 | return [
68 | $DATATABLE_COLUMNS$
69 | ];
70 | }
71 |
72 | /**
73 | * Get filename for export.
74 | *
75 | * @return string
76 | */
77 | protected function filename()
78 | {
79 | return '$MODEL_NAME_PLURAL_SNAKE$_datatable_' . time();
80 | }
81 | }
82 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/emails/password.stub:
--------------------------------------------------------------------------------
1 | Click here to reset your password: {{ $link }}
2 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/emails/password_locale.stub:
--------------------------------------------------------------------------------
1 | @lang('auth.emails.password.reset_link'): {{ $link }}
2 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/boolean.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!}
4 |
8 |
9 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/boolean_locale.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!}
4 |
8 |
9 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/checkbox.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!}
4 |
8 |
9 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/checkbox_group.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!}
4 | $CHECKBOXES$
5 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/checkbox_group_locale.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!}
4 | $CHECKBOXES$
5 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/checkbox_locale.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!}
4 |
8 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/date.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!}
4 | {!! Form::text('$FIELD_NAME$', null, ['class' => 'form-control','id'=>'$FIELD_NAME$']) !!}
5 |
6 |
7 | @push('scripts')
8 |
15 | @endpush
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/date_locale.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!}
4 | {!! Form::date('$FIELD_NAME$', null, ['class' => 'form-control','id'=>'$FIELD_NAME$']) !!}
5 |
6 |
7 | @push('scripts')
8 |
14 | @endpush
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/email.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!}
4 | {!! Form::email('$FIELD_NAME$', null, ['class' => 'form-control'$SIZE$]) !!}
5 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/email_locale.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!}
4 | {!! Form::email('$FIELD_NAME$', null, ['class' => 'form-control']) !!}
5 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/file.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!}
4 | {!! Form::file('$FIELD_NAME$') !!}
5 |
6 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/file_locale.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!}
4 | {!! Form::file('$FIELD_NAME$') !!}
5 |
6 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/number.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!}
4 | {!! Form::number('$FIELD_NAME$', null, ['class' => 'form-control'$SIZE$]) !!}
5 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/number_locale.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!}
4 | {!! Form::number('$FIELD_NAME$', null, ['class' => 'form-control']) !!}
5 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/password.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!}
4 | {!! Form::password('$FIELD_NAME$', ['class' => 'form-control'$SIZE$]) !!}
5 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/password_locale.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!}
4 | {!! Form::password('$FIELD_NAME$', ['class' => 'form-control']) !!}
5 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/radio.stub:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/radio_group.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!}
4 | $RADIO_BUTTONS$
5 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/radio_group_locale.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!}
4 | $RADIO_BUTTONS$
5 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/select.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!}
4 | {!! Form::select('$FIELD_NAME$', $INPUT_ARR$, null, ['class' => 'form-control']) !!}
5 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/select_locale.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!}
4 | {!! Form::select('$FIELD_NAME$', $INPUT_ARR$, null, ['class' => 'form-control']) !!}
5 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/text.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!}
4 | {!! Form::text('$FIELD_NAME$', null, ['class' => 'form-control'$SIZE$]) !!}
5 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/text_locale.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!}
4 | {!! Form::text('$FIELD_NAME$', null, ['class' => 'form-control']) !!}
5 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/text_modal_locale.stub:
--------------------------------------------------------------------------------
1 |
2 | {{ Form::label('$FIELD_NAME$','$FIELD_NAME_TITLE$:') }}*
3 | {{ Form::text('$FIELD_NAME$', null, ['class' => 'form-control', 'placeholder' => '$FIELD_NAME_TITLE$', 'required']) }}
4 |
5 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/textarea.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', '$FIELD_NAME_TITLE$:') !!}
4 | {!! Form::textarea('$FIELD_NAME$', null, ['class' => 'form-control'$SIZE$]) !!}
5 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/textarea_locale.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!}
4 | {!! Form::textarea('$FIELD_NAME$', null, ['class' => 'form-control']) !!}
5 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/toggle-switch.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/fields/toggle-switch_locale.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! Form::label('$FIELD_NAME$', __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$').':') !!}
4 |
8 |
9 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/jquery.stub:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | let tableName = '#$MODEL_NAME_PLURAL_CAMEL$Table';
4 | $(tableName).DataTable({
5 | scrollX: true,
6 | deferRender: true,
7 | scroller: true,
8 | processing: true,
9 | serverSide: true,
10 | 'order': [[0, 'asc']],
11 | ajax: {
12 | url: recordsURL,
13 | },
14 | columnDefs: [
15 | {
16 | 'targets': [$ACTION_COLUMN_COUNT$],
17 | 'orderable': false,
18 | 'className': 'text-center',
19 | 'width': '8%',
20 | },
21 | ],
22 | columns: [
23 | $JQUERY_FIELDS$
24 | {
25 | data: function (row) {
26 | let url = recordsURL + row.id;
27 | let data = [
28 | {
29 | 'id': row.id,
30 | 'url': url + '/edit',
31 | }];
32 |
33 | return prepareTemplateRender('#$MODEL_NAME_PLURAL_CAMEL$Template',
34 | data);
35 | }, name: 'id',
36 | },
37 | ],
38 | });
39 |
40 | $(document).on('click', '.delete-btn', function (event) {
41 | let recordId = $(event.currentTarget).data('id');
42 | deleteItem(recordsURL + recordId, tableName, '$MODEL_NAME_HUMAN$');
43 | });
44 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/jquery_datatable.stub:
--------------------------------------------------------------------------------
1 | select('$TABLE_NAME$.*');
19 |
20 | return $query;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/jquery_datatable_locale.stub:
--------------------------------------------------------------------------------
1 | select('$TABLE_NAME$.*');
19 |
20 | return $query;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/js_modal_renderer_template.stub:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/js_renderer_template.stub:
--------------------------------------------------------------------------------
1 |
9 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/layouts/datatables_css.stub:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfyOmLabs/stisla-generator/62e25665b387d1c745454f2dac938f5365340437/resources/infyom/infyom-generator-templates/scaffold/layouts/datatables_css.stub
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/layouts/datatables_js.stub:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfyOmLabs/stisla-generator/62e25665b387d1c745454f2dac938f5365340437/resources/infyom/infyom-generator-templates/scaffold/layouts/datatables_js.stub
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/layouts/footer.stub:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/layouts/header.stub:
--------------------------------------------------------------------------------
1 |
6 |
54 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/layouts/home.stub:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfyOmLabs/stisla-generator/62e25665b387d1c745454f2dac938f5365340437/resources/infyom/infyom-generator-templates/scaffold/layouts/home.stub
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/layouts/menu.stub:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/layouts/menu_template.stub:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/layouts/menu_template_locale.stub:
--------------------------------------------------------------------------------
1 |
2 | @lang('models/$MODEL_NAME_PLURAL_CAMEL$.plural')
3 |
4 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/layouts/sidebar.stub:
--------------------------------------------------------------------------------
1 |
16 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/layouts/sidebar_locale.stub:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/request/create_request.stub:
--------------------------------------------------------------------------------
1 | '$RAW_ROUTE_PREFIX$'], function () {
2 | Route::resource('$MODEL_NAME_PLURAL_CAMEL$', $NAMESPACE_CONTROLLER$\$MODEL_NAME$Controller::class, ["as" => '$RAW_ROUTE_PREFIX$']);
3 | });
4 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/routes/routes.stub:
--------------------------------------------------------------------------------
1 | Route::resource('$MODEL_NAME_PLURAL_CAMEL$', $NAMESPACE_CONTROLLER$\$MODEL_NAME$Controller::class);
2 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/view_composer.stub:
--------------------------------------------------------------------------------
1 | View::composer(['$COMPOSER_VIEWS$'], function ($view) {
2 | $$COMPOSER_VIEW_VARIABLE$ = $COMPOSER_VIEW_VARIABLE_VALUES$;
3 | $view->with('$COMPOSER_VIEW_VARIABLE$', $$COMPOSER_VIEW_VARIABLE$);
4 | });
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/blade_table_body.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | $FIELD_HEADERS$
6 | Action |
7 |
8 |
9 |
10 | @foreach($$MODEL_NAME_PLURAL_CAMEL$ as $$MODEL_NAME_CAMEL$)
11 |
12 | $FIELD_BODY$
13 |
14 | {!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!}
15 |
16 |
17 |
18 | {!! Form::button(' ', ['type' => 'submit', 'class' => 'btn btn-danger action-btn delete-btn', 'onclick' => 'return confirm("Are you sure want to delete this record ?")']) !!}
19 |
20 | {!! Form::close() !!}
21 | |
22 |
23 | @endforeach
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/blade_table_body_locale.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | $FIELD_HEADERS$
6 | @lang('crud.action') |
7 |
8 |
9 |
10 | @foreach($$MODEL_NAME_PLURAL_CAMEL$ as $$MODEL_NAME_CAMEL$)
11 |
12 | $FIELD_BODY$
13 |
14 | {!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!}
15 |
16 |
17 |
18 | {!! Form::button(' ', ['type' => 'submit', 'class' => 'btn btn-danger action-btn delete-btn', 'onclick' => 'return confirm("'.__('crud.are_you_sure').'")']) !!}
19 |
20 | {!! Form::close() !!}
21 | |
22 |
23 |
24 | @endforeach
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/create.stub:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 | @section('title')
3 | Create $MODEL_NAME_HUMAN$
4 | @endsection
5 | @section('content')
6 |
7 |
13 |
14 | @include('stisla-templates::common.errors')
15 |
16 |
17 |
18 |
19 |
20 | {!! Form::open(['route' => '$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.store'$FILES$]) !!}
21 |
22 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.fields')
23 |
24 | {!! Form::close() !!}
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | @endsection
33 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/create_locale.stub:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 | @section('title')
3 | @lang('crud.add_new') @lang('models/$MODEL_NAME_PLURAL_CAMEL$.singular')
4 | @endsection
5 | @section('content')
6 |
7 |
13 |
14 | @include('stisla-templates::common.errors')
15 |
16 |
17 |
18 |
19 |
20 | {!! Form::open(['route' => '$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.store'$FILES$]) !!}
21 |
22 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.fields')
23 |
24 | {!! Form::close() !!}
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | @endsection
33 |
34 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/datatable_body.stub:
--------------------------------------------------------------------------------
1 | @section('css')
2 | @include('layouts.datatables_css')
3 | @endsection
4 |
5 | {!! $dataTable->table(['width' => '100%', 'class' => 'table table-striped table-bordered']) !!}
6 |
7 | @push('scripts')
8 | @include('layouts.datatables_js')
9 | {!! $dataTable->scripts() !!}
10 | @endpush
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/datatable_column.stub:
--------------------------------------------------------------------------------
1 | '$FIELD_NAME$'
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/datatable_column_locale.stub:
--------------------------------------------------------------------------------
1 | '$FIELD_NAME$' => new Column(['title' => __('models/$MODEL_NAME_PLURAL_CAMEL$.fields.$FIELD_NAME$'), 'data' => '$FIELD_NAME$'$SEARCHABLE$])
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/datatables_actions.stub:
--------------------------------------------------------------------------------
1 | {!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!}
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | {!! Form::button('
', [
10 | 'type' => 'submit',
11 | 'class' => 'btn btn-danger btn-xs',
12 | 'onclick' => "return confirm('Are you sure?')"
13 | ]) !!}
14 |
15 | {!! Form::close() !!}
16 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/datatables_actions_locale.stub:
--------------------------------------------------------------------------------
1 | {!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!}
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | {!! Form::button('
', [
10 | 'type' => 'submit',
11 | 'class' => 'btn btn-danger btn-xs',
12 | 'onclick' => 'return confirm("'.__('crud.are_you_sure').'")'
13 | ]) !!}
14 |
15 | {!! Form::close() !!}
16 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/edit.stub:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 | @section('title')
3 | Edit $MODEL_NAME_HUMAN$
4 | @endsection
5 | @section('content')
6 |
7 |
13 |
14 | @include('stisla-templates::common.errors')
15 |
16 |
17 |
18 |
19 |
20 | {!! Form::model($$MODEL_NAME_CAMEL$, ['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.update', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'patch'$FILES$]) !!}
21 |
22 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.fields')
23 |
24 |
25 | {!! Form::close() !!}
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 | @endsection
34 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/edit_locale.stub:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 | @section('title')
3 | @lang('crud.edit') @lang('models/$MODEL_NAME_PLURAL_CAMEL$.singular')
4 | @endsection
5 | @section('content')
6 |
7 |
13 |
14 | @include('stisla-templates::common.errors')
15 |
16 |
17 |
18 |
19 |
20 | {!! Form::model($$MODEL_NAME_CAMEL$, ['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.update', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'patch'$FILES$]) !!}
21 |
22 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.fields')
23 |
24 |
25 | {!! Form::close() !!}
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 | @endsection
34 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/fields.stub:
--------------------------------------------------------------------------------
1 | $FIELDS$
2 |
3 |
4 |
8 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/fields_locale.stub:
--------------------------------------------------------------------------------
1 | $FIELDS$
2 |
3 |
4 |
8 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/index.stub:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 | @section('title')
3 | $MODEL_NAME_PLURAL_HUMAN$
4 | @endsection
5 | @section('content')
6 |
7 |
13 |
14 |
15 |
16 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.table')
17 |
18 |
19 |
20 | $PAGINATE$
21 |
22 | @endsection
23 |
24 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/index_locale.stub:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 | @section('title')
3 | @lang('models/$MODEL_NAME_PLURAL_CAMEL$.plural')
4 | @endsection
5 | @section('content')
6 |
7 |
13 |
14 |
15 |
16 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.table')
17 |
18 |
19 |
20 | $PAGINATE$
21 |
22 | @endsection
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/js_index.stub:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 | @section('title')
3 | $MODEL_NAME_PLURAL_HUMAN$
4 | @endsection
5 | @section('css')
6 |
7 | @endsection
8 | @section('content')
9 |
10 |
16 |
17 |
18 |
19 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.table')
20 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.templates.templates')
21 |
22 |
23 |
24 |
25 | @endsection
26 | @section('scripts')
27 |
30 |
31 |
32 |
33 | @endsection
34 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/js_index_locale.stub:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 | @section('title')
3 | $MODEL_NAME_PLURAL_HUMAN$
4 | @endsection
5 | @section('css')
6 |
7 | @endsection
8 | @section('content')
9 |
10 |
16 |
17 |
18 |
19 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.table')
20 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.templates.templates')
21 |
22 |
23 |
24 |
25 | @endsection
26 | @section('scripts')
27 |
30 |
31 |
32 |
33 | @endsection
34 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/js_modal_create.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 | {{ Form::open(['id'=>'create$MODEL_NAME_HUMAN$Form']) }}
10 |
11 |
12 |
13 | $FIELDS$
14 |
15 |
16 | {{ Form::button(__('Save'), ['type'=>'submit','class' => 'btn btn-primary','id'=>'$MODEL_NAME_HUMANBtnSave','data-loading-text'=>" Processing..."]) }}
17 |
19 |
20 |
21 | {{ Form::close() }}
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/js_modal_edit.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 | {{ Form::open(['id'=>"edit$MODEL_NAME_HUMAN$Form"]) }}
10 | @csrf
11 | {{ Form::hidden('id',null,['id' => '$MODEL_NAME_HUMAN$ID']) }}
12 |
13 |
14 |
15 | $FIELDS$
16 |
17 |
18 | {{ Form::button(__('Save'), ['type'=>'submit','class' => 'btn btn-primary','id'=>'$MODEL_NAME_HUMAN$BtnSave','data-loading-text'=>" Processing..."]) }}
19 |
21 |
22 |
23 | {{ Form::close() }}
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/js_modal_index_locale.stub:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 | @section('title')
3 | $MODEL_NAME_PLURAL_HUMAN$
4 | @endsection
5 | @section('css')
6 |
7 | @endsection
8 | @section('content')
9 |
10 |
17 |
18 |
19 |
20 |
21 |
22 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.table')
23 |
24 |
25 |
26 |
27 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.templates.templates')
28 |
29 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.create-modal')
30 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.edit-modal')
31 |
32 |
33 | @endsection
34 | @section('page_js')
35 |
38 |
39 |
40 |
41 | @endsection
42 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/js_table.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $FIELD_HEADERS$
5 | Action |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/js_table_locale.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $FIELD_HEADERS$
5 | {{ __('Action') }} |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/paginate.stub:
--------------------------------------------------------------------------------
1 |
2 | @include('stisla-templates::common.paginate', ['records' => $$MODEL_NAME_PLURAL_CAMEL$])
3 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/show.stub:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 | @section('title')
3 | $MODEL_NAME_HUMAN$ Details
4 | @endsection
5 | @section('content')
6 |
7 |
14 | @include('stisla-templates::common.errors')
15 |
16 |
17 |
18 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.show_fields')
19 |
20 |
21 |
22 |
23 | @endsection
24 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/show_field.stub:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/show_field_locale.stub:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/show_locale.stub:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 | @section('title')
3 | @lang('models/$MODEL_NAME_PLURAL_CAMEL$.singular') @lang('crud.details')
4 | @endsection
5 | @section('content')
6 |
7 |
14 | @include('stisla-templates::common.errors')
15 |
16 |
17 |
18 | @include('$VIEW_PREFIX$$MODEL_NAME_PLURAL_SNAKE$.show_fields')
19 |
20 |
21 |
22 |
23 | @endsection
24 |
25 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/table.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $FIELD_HEADERS$
5 | Action |
6 |
7 |
8 |
9 | @foreach($$MODEL_NAME_PLURAL_CAMEL$ as $$MODEL_NAME_CAMEL$)
10 |
11 | $FIELD_BODY$
12 |
13 | {!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!}
14 |
15 |
16 |
17 | {!! Form::button(' ', ['type' => 'submit', 'class' => 'btn btn-danger action-btn delete-btn', 'onclick' => 'return confirm("'.__('crud.are_you_sure').'")']) !!} !!}
18 |
19 | {!! Form::close() !!}
20 | |
21 |
22 | @endforeach
23 |
24 |
25 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/table_cell.stub:
--------------------------------------------------------------------------------
1 | {{ $$MODEL_NAME_CAMEL$->$FIELD_NAME$ }} |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/table_header.stub:
--------------------------------------------------------------------------------
1 | $FIELD_NAME_TITLE$ |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/table_header_locale.stub:
--------------------------------------------------------------------------------
1 | $FIELD_NAME_TITLE$ |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/views/table_locale.stub:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $FIELD_HEADERS$
5 | @lang('crud.action') |
6 |
7 |
8 |
9 | @foreach($$MODEL_NAME_PLURAL_CAMEL$ as $$MODEL_NAME_CAMEL$)
10 |
11 | $FIELD_BODY$
12 |
13 | {!! Form::open(['route' => ['$ROUTE_NAMED_PREFIX$$MODEL_NAME_PLURAL_CAMEL$.destroy', $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$], 'method' => 'delete']) !!}
14 |
15 |
16 |
17 | {!! Form::button(' ', ['type' => 'submit', 'class' => 'btn btn-danger action-btn delete-btn', 'onclick' => 'return confirm("'.__('crud.are_you_sure').'")']) !!} !!}
18 |
19 | {!! Form::close() !!}
20 | |
21 |
22 | @endforeach
23 |
24 |
25 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/scaffold/webpack_mix_js.stub:
--------------------------------------------------------------------------------
1 | mix.js('resources/assets/js/$TABLE_NAME$/$TABLE_NAME$.js', 'public/assets/js/$TABLE_NAME$/$TABLE_NAME$.js').version();
2 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/seeds/model_seeder.stub:
--------------------------------------------------------------------------------
1 | assertApiSuccess();
9 |
10 | $response = json_decode($this->response->getContent(), true);
11 | $responseData = $response['data'];
12 |
13 | $this->assertNotEmpty($responseData['id']);
14 | $this->assertModelData($actualData, $responseData);
15 | }
16 |
17 | public function assertApiSuccess()
18 | {
19 | $this->response->assertStatus(200);
20 | $this->response->assertJson(['success' => true]);
21 | }
22 |
23 | public function assertModelData(Array $actualData, Array $expectedData)
24 | {
25 | foreach ($actualData as $key => $value) {
26 | if (in_array($key, $TIMESTAMPS$)) {
27 | continue;
28 | }
29 | $this->assertEquals($actualData[$key], $expectedData[$key]);
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/test/repository_test.stub:
--------------------------------------------------------------------------------
1 | $MODEL_NAME_CAMEL$Repo = \App::make($MODEL_NAME$Repository::class);
22 | }
23 |
24 | /**
25 | * @test create
26 | */
27 | public function test_create_$MODEL_NAME_SNAKE$()
28 | {
29 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::factory()->make()->toArray();
30 |
31 | $created$MODEL_NAME$ = $this->$MODEL_NAME_CAMEL$Repo->create($$MODEL_NAME_CAMEL$);
32 |
33 | $created$MODEL_NAME$ = $created$MODEL_NAME$->toArray();
34 | $this->assertArrayHasKey('id', $created$MODEL_NAME$);
35 | $this->assertNotNull($created$MODEL_NAME$['id'], 'Created $MODEL_NAME$ must have id specified');
36 | $this->assertNotNull($MODEL_NAME$::find($created$MODEL_NAME$['id']), '$MODEL_NAME$ with given id must be in DB');
37 | $this->assertModelData($$MODEL_NAME_CAMEL$, $created$MODEL_NAME$);
38 | }
39 |
40 | /**
41 | * @test read
42 | */
43 | public function test_read_$MODEL_NAME_SNAKE$()
44 | {
45 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::factory()->create();
46 |
47 | $db$MODEL_NAME$ = $this->$MODEL_NAME_CAMEL$Repo->find($$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$);
48 |
49 | $db$MODEL_NAME$ = $db$MODEL_NAME$->toArray();
50 | $this->assertModelData($$MODEL_NAME_CAMEL$->toArray(), $db$MODEL_NAME$);
51 | }
52 |
53 | /**
54 | * @test update
55 | */
56 | public function test_update_$MODEL_NAME_SNAKE$()
57 | {
58 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::factory()->create();
59 | $fake$MODEL_NAME$ = $MODEL_NAME$::factory()->make()->toArray();
60 |
61 | $updated$MODEL_NAME$ = $this->$MODEL_NAME_CAMEL$Repo->update($fake$MODEL_NAME$, $$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$);
62 |
63 | $this->assertModelData($fake$MODEL_NAME$, $updated$MODEL_NAME$->toArray());
64 | $db$MODEL_NAME$ = $this->$MODEL_NAME_CAMEL$Repo->find($$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$);
65 | $this->assertModelData($fake$MODEL_NAME$, $db$MODEL_NAME$->toArray());
66 | }
67 |
68 | /**
69 | * @test delete
70 | */
71 | public function test_delete_$MODEL_NAME_SNAKE$()
72 | {
73 | $$MODEL_NAME_CAMEL$ = $MODEL_NAME$::factory()->create();
74 |
75 | $resp = $this->$MODEL_NAME_CAMEL$Repo->delete($$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$);
76 |
77 | $this->assertTrue($resp);
78 | $this->assertNull($MODEL_NAME$::find($$MODEL_NAME_CAMEL$->$PRIMARY_KEY_NAME$), '$MODEL_NAME$ should not exist in DB');
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/user/create_user_request.stub:
--------------------------------------------------------------------------------
1 | 'required',
29 | 'email' => 'required|email|unique:users,email',
30 | 'password' => 'required|confirmed'
31 | ];
32 |
33 | return $rules;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/user/update_user_request.stub:
--------------------------------------------------------------------------------
1 | route('user');
28 | $rules = [
29 | 'name' => 'required',
30 | 'email' => 'required|email|unique:users,email,'.$id,
31 | 'password' => 'confirmed'
32 | ];
33 |
34 | return $rules;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/user/user_repository.stub:
--------------------------------------------------------------------------------
1 | fieldSearchable;
32 | }
33 |
34 | /**
35 | * Configure the Model
36 | **/
37 | public function model()
38 | {
39 | return User::class;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/resources/infyom/infyom-generator-templates/view_service_provider.stub:
--------------------------------------------------------------------------------
1 | 'These credentials do not match our records.',
17 | 'password' => 'The provided password is incorrect.',
18 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
19 |
20 | ];
21 |
--------------------------------------------------------------------------------
/resources/lang/en/pagination.php:
--------------------------------------------------------------------------------
1 | '« Previous',
17 | 'next' => 'Next »',
18 |
19 | ];
20 |
--------------------------------------------------------------------------------
/resources/lang/en/passwords.php:
--------------------------------------------------------------------------------
1 | 'Your password has been reset!',
17 | 'sent' => 'We have emailed your password reset link!',
18 | 'throttled' => 'Please wait before retrying.',
19 | 'token' => 'This password reset token is invalid.',
20 | 'user' => "We can't find a user with that email address.",
21 |
22 | ];
23 |
--------------------------------------------------------------------------------
/resources/views/auth/emails/password.blade.php:
--------------------------------------------------------------------------------
1 | Click here to reset your password: {{ $link }}
2 |
--------------------------------------------------------------------------------
/resources/views/auth/forgot-password.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.auth_app')
2 | @section('title')
3 | Forgot Password
4 | @endsection
5 | @section('content')
6 |
7 |
8 |
9 |
10 | @if (session('status'))
11 |
12 | {{ session('status') }}
13 |
14 | @endif
15 |
31 |
32 |
33 |
34 | Recalled your login info?
Sign In
35 |
36 | @endsection
37 |
--------------------------------------------------------------------------------
/resources/views/auth/passwords/confirm.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | {{ config('app.name') }}
7 |
8 |
9 |
10 |
11 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
23 |
24 |
25 |
26 |
Please confirm your password before continuing.
27 |
28 |
53 |
54 |
55 | Forgot Your Password?
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/resources/views/auth/passwords/email.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.auth_app')
2 | @section('title')
3 | Forgot Password
4 | @endsection
5 | @section('content')
6 |
7 |
8 |
9 |
10 | @if (session('status'))
11 |
12 | {{ session('status') }}
13 |
14 | @endif
15 |
31 |
32 |
33 |
34 | Recalled your login info?
Sign In
35 |
36 | @endsection
37 |
--------------------------------------------------------------------------------
/resources/views/auth/passwords/reset.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.auth_app')
2 | @section('title')
3 | Reset Password
4 | @endsection
5 | @section('content')
6 |
56 |
57 | Recalled your login info?
Sign In
58 |
59 | @endsection
60 |
--------------------------------------------------------------------------------
/resources/views/auth/reset-password.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.auth_app')
2 | @section('title')
3 | Reset Password
4 | @endsection
5 | @section('content')
6 |
56 |
57 | Recalled your login info?
Sign In
58 |
59 | @endsection
60 |
--------------------------------------------------------------------------------
/resources/views/auth/verify.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 |
3 | @section('content')
4 |
5 |
6 |
7 |
8 |
Verify Your Email Address
9 |
10 |
11 | @if (session('resent'))
12 |
A fresh verification link has been sent to
13 | your email address
14 |
15 | @endif
16 |
Before proceeding, please check your email for a verification link.If you did not receive
17 | the email,
18 |
click here to request another'.
19 |
20 |
21 |
22 |
23 |
24 | @endsection
--------------------------------------------------------------------------------
/resources/views/home.blade.php:
--------------------------------------------------------------------------------
1 | @extends('layouts.app')
2 |
3 | @section('content')
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
Dashboard Content
14 |
15 |
16 |
17 |
18 |
19 |
20 | @endsection
21 |
22 |
--------------------------------------------------------------------------------
/resources/views/layouts/auth_app.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | @yield('title') | {{ config('app.name') }}
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
 }})
29 |
30 | @yield('content')
31 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/resources/views/layouts/datatables_css.blade.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfyOmLabs/stisla-generator/62e25665b387d1c745454f2dac938f5365340437/resources/views/layouts/datatables_css.blade.php
--------------------------------------------------------------------------------
/resources/views/layouts/datatables_js.blade.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/InfyOmLabs/stisla-generator/62e25665b387d1c745454f2dac938f5365340437/resources/views/layouts/datatables_js.blade.php
--------------------------------------------------------------------------------
/resources/views/layouts/footer.blade.php:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/resources/views/layouts/header.blade.php:
--------------------------------------------------------------------------------
1 |
6 |
54 |
--------------------------------------------------------------------------------
/resources/views/layouts/menu.blade.php:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/resources/views/layouts/sidebar.blade.php:
--------------------------------------------------------------------------------
1 |
16 |
--------------------------------------------------------------------------------
/routes/api.php:
--------------------------------------------------------------------------------
1 | get('/user', function (Request $request) {
18 | return $request->user();
19 | });
20 |
--------------------------------------------------------------------------------
/routes/channels.php:
--------------------------------------------------------------------------------
1 | id === (int) $id;
18 | });
19 |
--------------------------------------------------------------------------------
/routes/console.php:
--------------------------------------------------------------------------------
1 | comment(Inspiring::quote());
19 | })->purpose('Display an inspiring quote');
20 |
--------------------------------------------------------------------------------
/routes/web.php:
--------------------------------------------------------------------------------
1 | name('home');
21 |
22 | Auth::routes();
23 |
--------------------------------------------------------------------------------
/server.php:
--------------------------------------------------------------------------------
1 |
8 | */
9 |
10 | $uri = urldecode(
11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
12 | );
13 |
14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the
15 | // built-in PHP web server. This provides a convenient way to test a Laravel
16 | // application without having installed a "real" web server software here.
17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
18 | return false;
19 | }
20 |
21 | require_once __DIR__.'/public/index.php';
22 |
--------------------------------------------------------------------------------
/storage/app/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !public/
3 | !.gitignore
4 |
--------------------------------------------------------------------------------
/storage/app/public/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/framework/.gitignore:
--------------------------------------------------------------------------------
1 | compiled.php
2 | config.php
3 | down
4 | events.scanned.php
5 | maintenance.php
6 | routes.php
7 | routes.scanned.php
8 | schedule-*
9 | services.json
10 |
--------------------------------------------------------------------------------
/storage/framework/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !data/
3 | !.gitignore
4 |
--------------------------------------------------------------------------------
/storage/framework/cache/data/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/framework/sessions/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/framework/testing/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/framework/views/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/storage/logs/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/tests/ApiTestTrait.php:
--------------------------------------------------------------------------------
1 | assertApiSuccess();
9 |
10 | $response = json_decode($this->response->getContent(), true);
11 | $responseData = $response['data'];
12 |
13 | $this->assertNotEmpty($responseData['id']);
14 | $this->assertModelData($actualData, $responseData);
15 | }
16 |
17 | public function assertApiSuccess()
18 | {
19 | $this->response->assertStatus(200);
20 | $this->response->assertJson(['success' => true]);
21 | }
22 |
23 | public function assertModelData(Array $actualData, Array $expectedData)
24 | {
25 | foreach ($actualData as $key => $value) {
26 | if (in_array($key, ['created_at', 'updated_at'])) {
27 | continue;
28 | }
29 | $this->assertEquals($actualData[$key], $expectedData[$key]);
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/tests/CreatesApplication.php:
--------------------------------------------------------------------------------
1 | make(Kernel::class)->bootstrap();
19 |
20 | return $app;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/tests/Feature/ExampleTest.php:
--------------------------------------------------------------------------------
1 | get('/');
18 |
19 | $response->assertStatus(200);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/tests/TestCase.php:
--------------------------------------------------------------------------------
1 | assertTrue(true);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/webpack.mix.js:
--------------------------------------------------------------------------------
1 | const mix = require('laravel-mix');
2 |
3 | /*
4 | |--------------------------------------------------------------------------
5 | | Mix Asset Management
6 | |--------------------------------------------------------------------------
7 | |
8 | | Mix provides a clean, fluent API for defining some Webpack build steps
9 | | for your Laravel applications. By default, we are compiling the CSS
10 | | file for the application as well as bundling up all the JS files.
11 | |
12 | */
13 |
14 | mix.js('resources/js/app.js', 'public/js');
15 | mix.styles(['resources/js/app.js'], 'public/css/app.css').version();
16 |
17 | mix.styles([
18 | 'public/css/social-icons.css',
19 | 'public/css/owl.carousel.css',
20 | 'public/css/owl.theme.css',
21 | 'public/css/prism.css',
22 | 'public/css/main.css',
23 | 'public/css/custom.css',
24 | ], 'public/css/all.css').version();
25 |
26 | mix.js(
27 | 'public/js/scripts.js', 'public/js/scripts.min.js')
28 | .js('resources/assets/js/profile.js', 'public/assets/js/profile.js')
29 | .js('resources/assets/js/custom/custom.js', 'public/assets/js/custom/custom.js')
30 | .js('resources/assets/js/custom/custom-datatable.js', 'public/assets/js/custom/custom-datatable.js')
31 | .version();
32 |
33 |
34 | mix.copy('node_modules/bootstrap/dist/css/bootstrap.min.css',
35 | 'public/assets/css/bootstrap.min.css');
36 |
37 | mix.copy('node_modules/datatables.net-dt/css/jquery.dataTables.min.css',
38 | 'public/assets/css/jquery.dataTables.min.css');
39 | mix.copy('node_modules/datatables.net-dt/images', 'public/assets/images');
40 | mix.copy('node_modules/select2/dist/css/select2.min.css',
41 | 'public/assets/css/select2.min.css');
42 | mix.copy('node_modules/sweetalert/dist/sweetalert.css',
43 | 'public/assets/css/sweetalert.css');
44 | mix.copy('node_modules/izitoast/dist/css/iziToast.min.css',
45 | 'public/assets/css/iziToast.min.css');
46 |
47 | mix.copyDirectory('node_modules/@fortawesome/fontawesome-free/css',
48 | 'public/assets/css/@fortawesome/fontawesome-free/css');
49 | mix.copyDirectory('node_modules/@fortawesome/fontawesome-free/webfonts',
50 | 'public/assets/css/@fortawesome/fontawesome-free/webfonts');
51 |
52 | mix.babel('node_modules/jquery.nicescroll/dist/jquery.nicescroll.js',
53 | 'public/assets/js/jquery.nicescroll.js');
54 | mix.babel('node_modules/jquery/dist/jquery.min.js',
55 | 'public/assets/js/jquery.min.js');
56 | mix.babel('node_modules/popper.js/dist/umd/popper.min.js',
57 | 'public/assets/js/popper.min.js');
58 | mix.babel('node_modules/bootstrap/dist/js/bootstrap.min.js',
59 | 'public/assets/js/bootstrap.min.js');
60 | mix.babel('node_modules/datatables.net/js/jquery.dataTables.min.js',
61 | 'public/assets/js/jquery.dataTables.min.js');
62 | mix.babel('node_modules/select2/dist/js/select2.min.js',
63 | 'public/assets/js/select2.min.js');
64 | mix.babel('node_modules/sweetalert/dist/sweetalert.min.js',
65 | 'public/assets/js/sweetalert.min.js');
66 | mix.babel('node_modules/izitoast/dist/js/iziToast.min.js',
67 | 'public/assets/js/iziToast.min.js');
68 |
--------------------------------------------------------------------------------