-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathayuda.txt
554 lines (446 loc) · 17.1 KB
/
ayuda.txt
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
*****************************************************************
composer create-project laravel/laravel htdentshop
git init
git add .
git commit -m "Iniciando Ecommerce"
git log
git remote add origin https://github.com/Mersmith/htdentshop.git
git push origin master
*****************************************************************
php artisan serve
composer require laravel/jetstream
php artisan jetstream:install livewire
npm install
npm run dev
->Configurar el .env con la base de datos mysql
->Crear la base de datos en phpmyadmin
php artisan migrate
*****************************************************************
git checkout -b dependencias
git branch
git status
git add .
git commit -m "Instalando dependencias"
git push origin dependencias
->Click en boton Merge pull request
*****************************************************************
->Crea la migración y el modelo
->m:migración, s: seeder cantidad de registros, c: controlador, f: factories
php artisan make:model Categoria -ms
php artisan make:model Subcategoria -ms
php artisan make:model Marca -mfs
php artisan make:migration create_categoria_marca_table
->Crea la migración, el modelo y factories
php artisan make:model Producto -msf
php artisan make:model Color -ms
php artisan make:migration create_color_producto_table
php artisan make:model Medida -mf
php artisan make:migration create_color_medida_table
php artisan make:model Imagen -mf
php artisan migrate
php artisan migrate:rollback
php artisan migrate
*****************************************************************
git checkout -b modelo
git branch
git status
git add .
git commit -m "Creando las migraciones"
git push origin modelo
->Click en boton Merge pull request
*****************************************************************
git checkout -b relaciones
git branch
git status
git add .
git commit -m "Creando las relaciones con eloquent"
git push origin relaciones
->Click en boton Merge pull request
*****************************************************************
->Seeder: permiten comunicarse con la base de datos de una forma más eficiente y optimizada.
->Factories: nos permiten crear registros de prueba
php artisan make:seeder UserSeeder
php artisan make:factory CategoriaFactory
->cambiar en config el filesystems la ruta
php artisan storage:link
php artisan migrate:fresh --seed
->Me salio error en guardar imagenes en el public y pues la solucion es mofificar el vendor
vendor\fakerphp\faker\src\Faker\Provider\Image.php
$baseUrl = "https://picsum.photos/";
public const BASE_URL = 'https://placehold.jp'; // cambie la URL
curl_setopt($ch, CURLOPT_FILE, $fp); //línea existente
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);//nueva línea
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);//nueva línea
$success = curl_exec($ch) && curl_getinfo($ch, CURLINFO_HTTP_CODE) === 200;//línea existente
php artisan migrate:fresh --seed
php artisan make:factory SubcategoriaFactory
php artisan migrate:fresh --seed
php artisan migrate:fresh --seed
php artisan make:seeder ColorProductoSeeder
php artisan make:seeder MedidaSeeder
php artisan migrate:fresh --seed
*****************************************************************
git checkout -b factories
git branch
git status
git add .
git commit -m "Llenando datos falso"
git push origin factories
->Click en boton Merge pull request
*****************************************************************
PS C:\xampp\htdocs> git clone https://github.com/Mersmith/htdentshop.git
composer install
npm install
crear el archivo .env
php artisan storage:link
*****************************************************************
->Instalar Tailwind
->Al momentos de instalar jetstream se instalo y configuro Tailwind
*****************************************************************
php artisan make:livewire menu-principal
php artisan vendor:publish --tag=jetstream-views
no
php artisan key:generate
*****************************************************************
git config --global user.email "[email protected]"
git config --global user.name "Mersmith"
git config --global -l
git init
git add .
git checkout -b plantilla
git branch
git status
git add .
git commit -m "Diseñando la plantilla de app"
git push origin plantilla
->Click en boton Merge pull request
*****************************************************************
->configure jetstream habilitar subir fotos
php artisan make:livewire menu-carrrito
*****************************************************************
git checkout -b menuinicio
git branch
git status
git add .
git commit -m "Menu desplegable de Perfil y del Carrito"
git push origin menuinicio
->Click en boton Merge pull request
*****************************************************************
git checkout -b 7_menuprincipal
git branch
git status
git add .
git commit -m "Interación con Alpine js y sidebar"
git push origin 7_menuprincipal
->Click en boton Merge pull request
*****************************************************************
php artisan make:livewire categoria-productos
php artisan make:controller InicioController
->instalar glider js
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/glider-js@1/glider.min.css">
<script src="https://cdn.jsdelivr.net/npm/glider-js@1/glider.min.js"></script>
*****************************************************************
git checkout -b 8_configuracion_glider
git branch
git status
git add .
git commit -m "Configuran la libreria glider para los productos"
git push origin 8_configuracion_glider
->Click en boton Merge pull request
*****************************************************************
git checkout -b 9_slider_productos_inicio
git branch
git status
git add .
git commit -m "Creando el slider de los productos en inicio"
git push origin 9_slider_productos_inicio
->Click en boton Merge pull request
*****************************************************************
php -S localhost:8000 -t public/
php artisan livewire:publish
'asset_url' => url('/')
*****************************************************************
git checkout -b 10_slider_categorias_inicio
git branch
git status
git add .
git commit -m "Creando el slider de las categoria pagina inicio"
git push origin 10_slider_categorias_inicio
->Click en boton Merge pull request
*****************************************************************
php artisan make:controller CategoriaController
->Problema al crear categoriacontroller por la url en el livewire
php artisan make:livewire categoria-filtro
*****************************************************************
git checkout -b 11_pagina_categorias
git branch
git status
git add .
git commit -m "Creando la pagina categorias"
git push origin 11_pagina_categorias
->Click en boton Merge pull request
*****************************************************************
php artisan make:controller ProductoController
composer require jenssegers/date
php artisan make:livewire agregar-carrito-producto
php artisan make:livewire agregar-carrito-producto-color
php artisan make:livewire agregar-carrito-producto-medida
*****************************************************************
php artisan make:seeder ColorMedidaSeeder
php artisan migrate:fresh --seed
*****************************************************************
git checkout -b 12_pagina_producto
git branch
git status
git add .
git commit -m "Creando la pagina producto solo"
git push origin 12_pagina_producto
->Click en boton Merge pull request
*****************************************************************
php artisan make:model Slider -m
php artisan migrate
-> imagenes/slider/slider1.jpg
*****************************************************************
git checkout -b 13_reestructuracion
git branch
git status
git add .
git commit -m "Reestructure las carpetas en frontend y admin"
git push origin 13_reestructuracion
->Click en boton Merge pull request
*****************************************************************
composer require bumbummen99/shoppingcart
-> crear la carpeta helpers y crear funciones
-> Modificamos el composer.json
composer dump-autoload
->Utilizando accesores
php artisan make:model ColorMedida
php artisan make:model ColorProducto
*****************************************************************
git checkout -b 14_carrito
git branch
git status
git add .
git commit -m "Carrito, stock"
git push origin 14_carrito
->Click en boton Merge pull request
******************************************************************
php artisan make:livewire frontend.carrito-compras
php artisan make:livewire frontend.actualizar-carrito-item
php artisan make:livewire frontend.actualizar-carrito-item-color
php artisan make:livewire frontend.actualizar-carrito-item-medida
*****************************************************************
git checkout -b 15_carrito_pagina
git branch
git status
git add .
git commit -m "Crud de la pagina carrito de compras"
git push origin 15_carrito_pagina
->Click en boton Merge pull request
*****************************************************************
php artisan make:livewire Admin\MostrarProductos
php artisan make:livewire Admin\CrearProducto
->utilizar plugin ckeditor
<script src="https://cdn.ckeditor.com/ckeditor5/35.0.1/classic/ckeditor.js"></script>
php artisan make:livewire Admin\EditarProducto
php artisan make:livewire Admin\MedidaProducto
php artisan make:livewire Admin\ColorProducto
->Instalar <script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
php artisan make:livewire Admin\ColorMedida
->agregar Dropzone
<script src="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.9.3/dropzone.min.js" integrity="sha512-U2WE1ktpMTuRBPoCFDzomoIorbOyUv0sP8B+INA3EzNAhehbzED1rOJg6bCqPf/Tuposxb5ja/MAUnC8THSbLQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.9.3/dropzone.min.css" integrity="sha512-jU/7UFiaW5UBGODEopEqnbIAHOI8fO6T99m7Tsmqs2gkdujByJfkCbbfPSN4Wlqlb9TGnsuC0YgUgWkRBK7B9A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
php artisan make:controller Admin\ProductoController
php artisan make:observer ProductoObserver
php artisan make:livewire Admin\EstadoProducto
php artisan make:controller Admin\CategoriaController
php artisan make:component AdminLayout
*****************************************************************
git checkout -b 16_Crud_producto
git branch
git status
git add .
git commit -m "Crud de agregar productos"
git push origin 16_Crud_producto
->Click en boton Merge pull request
***********************30/08/22******************************************
php artisan make:livewire Admin\Categoria\mostrar-categoria
php artisan make:livewire Admin\Categoria\crear-categoria
php artisan make:seeder SliderSeeder
php artisan make:factory SliderFactory
php artisan make:factory SliderFactory --model=Slider
php artisan make:livewire Admin\Marca\mostrar-marca
*****************************************************************
git checkout -b 17_Crud_categoria_subcategoria_marca
git branch
git status
git add .
git commit -m "Crud de categoria, subcategoria y marca."
git push origin 17_Crud_categoria_subcategoria_marca
->Click en boton Merge pull request
***********************30/08/22******************************************
php artisan make:livewire Frontend\Orden\crear-orden
->Para guardar productos de carrito
https://packagist.org/packages/bumbummen99/shoppingcart
php artisan vendor:publish --provider="Gloudemans\Shoppingcart\ShoppingcartServiceProvider" --tag="migrations"
php artisan migrate
->Agregar eventos en EventServiceProvider
php artisan event:generate
php artisan make:model Departamento -mfs
php artisan make:model Ciudad -mfs
php artisan make:model Distrito -mfs
php artisan make:model Orden -m
php artisan migrate:fresh
php artisan migrate:fresh --seed
php artisan make:controller Frontend\OrdenController
git checkout -b 18_Pagina_Orden
git branch
git status
git add .
git commit -m "Pagina Orden de pago"
git push origin 18_Pagina_Orden
->Click en boton Merge pull request
***********************30/08/22******************************************
https://www.mercadopago.com.pe/developers/es
https://www.mercadopago.com.pe/developers/panel
->Crear aplicacion
->Elige el producto que vas a integrar: Checkout Pro
git checkout -b 19_Credenciales_Mercadopago
git branch
git status
git add .
git commit -m "Credencias mercadopago del vendedor y comprador."
git push origin 19_Credenciales_Mercadopago
->Click en boton Merge pull request
***********************31/08/22******************************************
php artisan make:controller Frontend\WebhooksController
->VerifyCsrfToken
php artisan make:livewire Frontend\Orden\PagoOrden
php artisan make:policy OrdenPolicy
php artisan schedule:work
git checkout -b 20_Pagar_Mercadopago
git branch
git status
git add .
git commit -m "Pagar con mercadopago"
git push origin 20_Pagar_Mercadopago
->Click en boton Merge pull request
***********************01/09/22******************************************
php artisan make:controller Admin\OrdenController
php artisan make:controller Frontend\BuscarController
php artisan make:livewire Frontend\Buscar
git checkout -b 21_Refactorizacion1
git branch
git status
git add .
git commit -m "Refactorice el codigo y organice"
git push origin 21_Refactorizacion1
->Click en boton Merge pull request
***********************05/09/22******************************************
php artisan make:livewire Admin\Producto\solo-medida-producto
php artisan make:livewire Admin\Producto\solo-color-medida-producto
php artisan make:livewire Frontend\Producto\agregar-carrito-solo-producto-medida
git checkout -b 22_Subir_Imagenes_Medida
git branch
git status
git add .
git commit -m "Subir Imagenes al producto y variacion del producto en medidad"
git push origin 22_Subir_Imagenes_Medida
->Click en boton Merge pull request
***********************07/09/22******************************************
https://spatie.be/docs/laravel-permission/v5/introduction
composer require spatie/laravel-permission
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
php artisan config:clear
php artisan migrate
php artisan migrate:fresh --seed
php artisan make:livewire Admin\Usuario\usuario-componente
https://ckeditor.com/ckeditor-5/download/
<script src="https://cdn.ckeditor.com/ckeditor5/35.0.1/classic/ckeditor.js"></script>
php artisan make:policy ProductoPolicy
php artisan make:model Resena -m
php artisan migrate
php artisan make:controller Frontend\ResenaController
php artisan make:livewire Admin\Orden\estado-orden
git checkout -b 23_Permisos_Ordenes
git branch
git status
git add .
git commit -m "Permisos, Resenas, Ordenes"
git push origin 23_Permisos_Ordenes
->Click en boton Merge pull request
***********************08/09/22******************************************
php artisan make:livewire Admin\Departamento\departamento-componente
php artisan make:livewire Admin\Departamento\ciudad-componente
php artisan make:livewire Admin\Departamento\mostrar-departamento
php artisan make:livewire Admin\Departamento\distrito-ciudad
php artisan make:livewire Usuario\Perfil\mostrar-perfil
git checkout -b 24_Crud_Envio
git branch
git status
git add .
git commit -m "Crud de envios, departamento, ciudad, distrito"
git push origin 24_Crud_Envio
->Click en boton Merge pull request
***********************10/09/22******************************************
php artisan make:seeder RolSeeder
php artisan make:controller Admin\UsuarioController
->crea con metodos
php artisan make:controller Admin\RolController -r
php artisan make:controller Admin\PermisosController -r
git checkout -b 25_Avance_Roles
git branch
git status
git add .
git commit -m "Roles y Permisos"
git push origin 25_Avance_Roles
->Click en boton Merge pull request
***********************13/09/22******************************************
git checkout -b 26_Avance_Roles_2
git branch
git status
git add .
git commit -m "Roles y Permisos"
git push origin 26_Avance_Roles_2
->Click en boton Merge pull request
***********************14/09/22******************************************
php artisan route:list
git checkout -b 27_Rutas_Usuario
git branch
git status
git add .
git commit -m "Rutas de usuario, jetstream y fortify"
git push origin 27_Rutas_Usuario
->Click en boton Merge pull request
***********************14/09/22 - 2******************************************
php artisan make:model Cupon -m
php artisan make:livewire Admin\Cupon\mostrar-cupones
php artisan make:livewire Admin\Cupon\agregar-cupones
php artisan make:livewire Admin\Cupon\editar-cupones
php artisan migrate:fresh --seed
***********************16/09/22******************************************
->Puntos y Cupon
git checkout -b 28_Puntos_Cupon
git branch
git status
git add .
git commit -m "Puntos y Cupon"
git push origin 28_Puntos_Cupon
->Click en boton Merge pull request
***********************17/09/22******************************************
->Cupon y Puntos en Pagar
git checkout -b 29_Puntos_Cupon_2
git branch
git status
git add .
git commit -m "Puntos y Cupon en Orden Pagar"
git push origin 29_Puntos_Cupon_2
->Click en boton Merge pull request
***********************24/09/22******************************************
git checkout -b 30_Comentarios
git branch
git status
git add .
git commit -m "Comentarios"
git push origin 30_Comentarios
->Click en boton Merge pull request