tomas95go

Experience

6,360

0 Best Reply Awards

  • Member Since 4 Months Ago
  • 61 Lessons Completed
  • 0 Favorites

25th April, 2017

tomas95go left a reply on How To Make A Delete Confirmation Window With Sweet Alert • 8 hours ago

@Cronix what code are you talking about? The css and js? or the function I tried to do? This last thing, I erase that function cause I didn't make it to work,I tried to apply the function that it's in the link I put on the thread.

@Screenbeetle

I put the peace of code u gave me and adapt it to my routes, but it is still not working.

{{ Form:: open(['method' => 'DELETE','route' => ['administrarStock.destroy', $producto->id], 'id' => 'confirm_delete']) }}

                        {!! Form::submit('Eliminar', ['class' => ' btn-danger']) !!}

                          <script type="text/javascript">
                            $(document).ready(function(){
                                $( "#confirm_delete" ).submit(function( event ) {
                                    event.preventDefault();
                                    swal({
                                        title: 'Are you sure?',
                                        text: "Please click confirm to delete this item",
                                        type: 'warning',
                                        showCancelButton: true,
                                        confirmButtonColor: '#3085d6',
                                        cancelButtonColor: '#d33',
                                        confirmButtonText: 'Yes, delete it!',
                                        cancelButtonText: 'No, cancel!',
                                        confirmButtonClass: 'btn btn-success',
                                        cancelButtonClass: 'btn btn-danger',
                                        buttonsStyling: true
                                    }).then(function() {
                                            $("#confirm_delete").off("submit").submit();
                                    }, function(dismiss) {
                                        // dismiss can be 'cancel', 'overlay',
                                        // 'close', and 'timer'
                                        if (dismiss === 'cancel') {
                                            swal('Cancelled', 'Delete Cancelled :)', 'error');
                                        }
                                    })
                                });
                            });
                        </script>

                        

                        {!! Form::close() !!}

tomas95go started a new conversation How To Make A Delete Confirmation Window With Sweet Alert • 12 hours ago

Let me be clear for you people :), I already found the answer to this issue in this link

https://laracasts.com/discuss/channels/laravel/confirm-delete-using-sweetalert

The problem is, I do not know how to implement that answer in my code, I just start using Sweet Alert today and I manage to setup basic messages like "Success! You are now loged in" kind of stuff.

Also I try to get an answer on Google, not having result's cause I don't know JavaScript either.

So, I'm asking for help here because I only need this kind of Window for my project (at least for now).

Laravel version: 5.4.19

S.O: Windows 10.

Enviroment: virtualized Homestead version 2.2.2 on a VirtualBox VM.

Additional packages: Laravel Collective for the forms and Sweet Alerts as I mentioned at the beginning of the thread.

This is my code:

ControladorProductos.php: (ProductsController in english)

‚Äč```php

24th April, 2017

tomas95go left a reply on SQLSTATE[HY000]: General Error: 1364 Field 'reset_token' Doesn't Have A Default Value • 1 day ago

May be it's going to sound stupid, but did you try it the "normal" way?

public function up() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); $table->string('password'); $table->rememberToken(); $table->string('email'); $table->timestamps(); }); }

/**
 * Reverse the migrations.
 *
 * @return void
 */
public function down()
{
    Schema::dropIfExists('users');
}

Something like that

23rd March, 2017

tomas95go left a reply on Searching, Where And/or Where • 1 month ago

@SCC Hi! Could you please show your form? I'm having struggle with this, and also show me your Model and Controller for the Search action, thanks in advance.

16th March, 2017

tomas95go left a reply on I Never Know How To Start A Project • 1 month ago

Thanks for answering @Impart @tykus @Cronix , I'm taking it easy now and doing what u say guys, grabed a notepad and using my white board to start the design of the project, doing that kind of cool me off.

tomas95go started a new conversation I Never Know How To Start A Project • 1 month ago

Hi everyone, I think this a problem that I always have whenever I try to start programming a Project.

I never know how to start it, I just finished the series "Laracasts 5.4 from Scratch" and when I wanted to start my personal project, I'm just in shock, I'm a begginer with Project Development.

I want to do a Stock Managment System, where should I start? Anyone has any hints that I can use or recommend books or tutorials to how to start a Project? or may be you guys can share the approach you have when u want to do somethin.

8th March, 2017

tomas95go left a reply on MySQL GUI Does Not Refresh My Tables Using Homestead • 1 month ago

I Really dunno What I did but it's working now.

tomas95go started a new conversation MySQL GUI Does Not Refresh My Tables Using Homestead • 1 month ago

Hi people, I'm stuck in the episode "Laravel 5.4 From Scratch: Working With the Query Builder".

The thing is you have to migrate a new table, the migration is working,but the problem is MySQL GUI is not showing me the correct tables and the correct data.

Things to consider: Im a Windows 10 user, Im using Vagrant and Homestead with a Virtualbox provider.

If go via Homestead SSH/Vagrant SSH and enter to MySQL via:

mysql -u user -p

use libreria; //name of my database.

show tables;

show, obviusly the tables that I currently have:

http://imageshack.com/a/img923/9744/u0d62j.jpg

But in the MySQL GUI (Using SQLyog):

http://imageshack.com/a/img923/4660/s4jdwo.jpg

Note: Also I have a add a field to "tasks" called "body" but it is not reflected on the GUI! and I have two more tables "create_users_table" and "create_password_resets" that the GUI is not showing.

This is the way I'm doing the connection on SQLyog:

http://imageshack.com/a/img921/1810/Y4f0Ra.jpg

http://imageshack.com/a/img921/1609/lmwYcF.jpg

This my .env file:

http://imageshack.com/a/img922/5780/0frOJP.jpg

This is my Homestead.yaml file:

http://imageshack.com/a/img923/9316/D5Ztsq.jpg

Another question the folders map and the sites map are ok?

This is the location of my code:

D:\Proyectos\miLibreria

19th January, 2017

tomas95go left a reply on Problems With The PHP Practitioner Series Episode 16 • 3 months ago

@eldelmonico @jasoking92 sorry for the late reply, when you 're talking about the directory of the code, is in the right carpet (htdocs on XAMPP), i'm not using Laravel, this is pure php.

How can I upload the code so you can take a look at it? cause Router.php uses other codes to execute.

If u still want the code from Router.php, this is the one:

5th January, 2017

tomas95go left a reply on Problems With The PHP Practitioner Series Episode 16 • 3 months ago

@ejdelmonico Thanks for answer, yeah I know that, but that's the weird thing! the route is defined, I follow the instructions of the video step by step like I always do, that's why I don't know what's going on. I checked the solutions that people come up on the comments on the video but nothing it's working.

2nd January, 2017

tomas95go started a new conversation Problems With The PHP Practitioner Series Episode 16 • 3 months ago

Hi Everyone, I'm very happy that I'm learning PHP with such a good teacher like Jeffrey however im having problems with this Episode.

I keep getting the same error message:

Fatal error: Uncaught Exception: No route defined for this URI in D:\Xamp\htdocs\laracast-curso1\core\Router.php:35 Stack trace: #0 D:\Xamp\htdocs\laracast-curso1\index.php(8): Router->direct('laracast-curso1...') #1 {main} thrown in D:\Xamp\htdocs\laracast-curso1\core\Router.php on line 35

I already try the solutions that other user's metion in the comments of the episode, and I still can't fix this.

I'm using Xampp.

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.