seantiago24

seantiago24

Member Since 1 Year Ago

Experience Points 620
Experience Level 1

4,380 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 1
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • Chatty Cathy Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

13 May
1 week ago

seantiago24 started a new conversation Laravel Echo , Broadcast , Socket.io , Redis Configration

i'm starting a laravel project configuration , for chat app , so for that i'm using laravel-echo-server and socket.io and redis , no pusher .

i've configured all and it seems ok cause i'm not getting any errors in my chrome console , but i'm not getting any response , for now i'm just trying to console a random message ( console.log('test ok') ) and still not getting it . route file web.php

Route::get('/', function () { return view('welcome'); });

Route::get('/event' , '[email protected]');

Controller tesController.php

public function event (){ Broadcast(new ExampleEvent('message de test')); return 'Broadcasted'; }

view file welcome.blade.php

    <title>Laravel</title>

    <!-- Fonts -->
    <link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
    
    <meta name="csrf-token" content="{{ csrf_token() }}">
   
</head>
<body>

    <div class="flex-center position-ref full-height">
        @if (Route::has('login'))
            <div class="top-right links">
                @auth
                    <a href="{{ url('/home') }}">Home</a>
                @else
                    <a href="{{ route('login') }}">Login</a>

                    @if (Route::has('register'))
                        <a href="{{ route('register') }}">Register</a>
                    @endif
                @endauth
            </div>
        @endif

        <div id="app" class="content">
            <div class="title m-b-md">
                Chat
            </div>
                @yield('section')
            
        </div>
    </div>
    <script src="{{ asset('js/app.js') }}"></script>
    <script type="text/javascript">
        Echo.channel('testevent')
        .listen('ExampleEvent', (e) => {
            console.log(e);
            alert('here');
            console.log('here');
        });
    </script>
</body>

laravel-echo-server.json

{ "authHost": "http://localhost", "authEndpoint": "/broadcasting/auth", "clients": [], "database": "redis", "databaseConfig": { "redis": {}, "sqlite": { "databasePath": "/database/laravel-echo-server.sqlite" } }, "devMode": true, "host": null, "port": "6001", "protocol": "http", "socketio": {}, "sslCertPath": "", "sslKeyPath": "", "sslCertChainPath": "", "sslPassphrase": "", "subscribers": { "http": true, "redis": true }, "apiOriginAllow": { "allowCors": false, "allowOrigin": "", "allowMethods": "", "allowHeaders": "" } }

and i've added this in bootstrap file

import Echo from 'laravel-echo' window.io = require('socket.io-client');

window.io = require('socket.io-client'); window.Echo = new Echo({ broadcaster: 'socket.io', host: 'localhost:6001' });

the Event file :

13 Dec
5 months ago

seantiago24 started a new conversation Fetching Result From DB

CREATE TABLE sondage ( sondage_id int(11) NOT NULL, sondage_question varchar(255) NOT NULL, Sondage_date_debut datetime NOT NULL, sondage_date_fin datetime NOT NULL, sondage_voters int(11) NOT NULL, sondage_votes float NOT NULL, created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE sondage_reponse ( reponse_id int(11) NOT NULL, reponse_sondage_id int(11) NOT NULL, reponse_reponse varchar(255) NOT NULL, created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE vote ( vote_id int(11) NOT NULL, vote_question_id int(11) NOT NULL, vote_reponse_id int(11) NOT NULL, created_at datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

                $this->today = date('Y-m-d');
                $startDate = $this->today." 00:00:00";
                $endDate = $this->today." 23:59:59";

                $votes = DB::table('vote')->where('vote_question_id', $question_id)
                ->join('sondage', 'sondage.sondage_id' ,'vote.vote_question_id')
                ->join('sondage_reponse' ,'sondage_reponse.reponse_id' ,'vote.vote_reponse_id' )
                ->where('Sondage_date_debut' ,'<=', $this->today)
                ->where('Sondage_date_fin','>=' ,$this->today)
                ->get();

hi i'm trying to create a vote system , but always getting an error with the query , knowing that t should not use any library and using DB query not eloquent , plz someone help to fetch my result : showing the question and it's responses and the count of persons that voted on that question it's urgent plzz

26 May
11 months ago

seantiago24 left a reply on Categories And Sub Categories

@jlrdw no i can't , i have an existed DB , i should work on it .

seantiago24 started a new conversation Categories And Sub Categories

Hi I want to retrive categories and subcategories from DB , knowing that they are in the same table , related with field called parent_id . any solution please

23 May
11 months ago

seantiago24 left a reply on Traling Data ERROR

thank you , it worked for me , i've deleted the columns of the "updated_at" and "created_at" and i've created them with the format that you said

seantiago24 left a reply on Traling Data ERROR

@ejdelmonico , i'm not using any packages with the User model .

seantiago24 left a reply on Traling Data ERROR

@ejdelmonico i can't find any one of this ,

seantiago24 left a reply on Traling Data ERROR

i'm using Postgresql

seantiago24 left a reply on Traling Data ERROR

@lostdreamer_nl so how to make sure that date formatting hasn't changed in my models ?

seantiago24 left a reply on Traling Data ERROR

@ejdelmonico but i'm not updating any dates

22 May
1 year ago

seantiago24 started a new conversation Traling Data ERROR

Hi while i'm trying to update user

public function update(Request $request , $id ) {

    $user = User::find($id);

   $user->name = $request->name;

   $user->save();


   Flash::message('Your account has been updated!');

   //$user->update($request->all());
   return 'ok';

  }

I get error : InvalidArgumentException Trailing data

Any solution plz

seantiago24 left a reply on Change The Password Field Of Registration From (password) To (x_password)

@emmiebrizzie I can't find a file called authController.php . I only have under the folder Controllers/Auth :

*ForgotPasswordController *LoginController *RegisterController *ResetPasswordController

what should I do then ?

21 May
1 year ago

seantiago24 started a new conversation Change The Password Field Of Registration From (password) To (x_password)

Hi In the usual way that laravel do the registration of users : it uses the field called password , but for some reason i want to change it , to use a field called (x_password) already existed in my DB , for the registration and login .

For the login i've added this to User Model and worked fine public function getAuthPassword() { return $this->x_passwd; }

but what about the registration . Any one can help plz

20 May
1 year ago

seantiago24 left a reply on Laravel Email Configuration On Local Using Xampp

how can i reply with a picture plz ?

seantiago24 left a reply on Laravel Email Configuration On Local Using Xampp

thank you so much @Cronix , It worked for me

seantiago24 left a reply on Laravel Email Configuration On Local Using Xampp

the error tells me that :

Swift_TransportException (535) Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials y42-v6sm25365715wry.21 - gsmtp "

and i did as yours in settings (with my credentials)

seantiago24 left a reply on Laravel Email Configuration On Local Using Xampp

My fault , sorry , plz check the second error i've posted

seantiago24 left a reply on Laravel Email Configuration On Local Using Xampp

Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials b57-v6sm25280121wra.9 - gsmtp "

seantiago24 left a reply on Laravel Email Configuration On Local Using Xampp

Swift_TransportException Connection could not be established with host smtp.gmail.com [php_network_getaddresses: getaddrinfo failed: Le nom demand� est valide, mais aucune donn�e du type requise n�a �t� trouv�e. #0]

seantiago24 left a reply on Laravel Email Configuration On Local Using Xampp

Thank you @Cronix for your reply , but i still getting an error while trying to use the reset-password fonctionnality PS : i've already reboot my local server (xampp).

seantiago24 started a new conversation Laravel Email Configuration On Local Using Xampp

Hi , any way to configure laravel , to use the reset password via email functionnality , i'm using laravel 5 , xampp , php 7

seantiago24 started a new conversation Change The Password Field Of Registration

Hi In the usual way that laravel do the registration of users : it uses the field called password , but for some reason i want to change it , to use a field called (x_password) already existed in my DB , for the registration and login . Any one can help please ?