kisaw88

kisaw88

Member Since 6 Months Ago

Experience Points
4,200
Total
Experience

800 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
27
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

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

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

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

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    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 Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

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

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

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

Level 1
4,200 XP
07 May
4 months ago

kisaw88 started a new conversation Modifying Input Type On Chrome Inspect

i have an input form with type=password, i know it is easy to modify the input type in chrome inspect , for example modify type = password to type= text to see the password.

is there a way to stop this process, i mean the user in the password will never be able to remove the stars from the password to see it ?

06 Apr
5 months ago

kisaw88 left a reply on How To Get Auto Increment Value

@CRONIX - the user should note all the informations written in the system + the id so it is prefereable to show it to him while he is puting data in the form. but i guess AUTO_INCREMENT is a value so i should access it easily !

kisaw88 left a reply on How To Get Auto Increment Value

@SNAPEY - this works but if the user does not create a record , for example he just checks the page, then the system would create a record for him and that record is going to be stored with no data :/

kisaw88 left a reply on How To Get Auto Increment Value

@CRONIX - okay, i'am displaying to the user a view for adding a demand to a product, but i want to display to him the demand id while he is filling the demand form .

kisaw88 left a reply on How To Get Auto Increment Value

@KEL_ - no it is easy if i can get only the auto increment value then i would add to it 1 and that's it :)

kisaw88 started a new conversation How To Get Auto Increment Value

i'am using an auto increment id in a table , i want to get the auto increments value to that table , because i want to know the id that a record is gonna take before i store it , how do i do it?

04 Apr
5 months ago

kisaw88 left a reply on Phpspreadsheep Background Color

i found the solution, the problem was that the file was needed to be .xlsx not .xls

kisaw88 started a new conversation Phpspreadsheep Background Color

Hello, i'am generating using laravel excel package to generate an excel file, i want to know how to change an excel cell background color , ihave tried this lines of code but did not work :

  'fill' => [
          'fillType' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_GRADIENT_LINEAR,
          'rotation' => 90,
          'startColor' => [
              'argb' => 'FFA0A0A0',
            ],
            'endColor' => [
                'argb' => 'FFFFFFFF',
            ],
        ],

kisaw88 left a reply on Id Incrementation Problem

@XSECRETS - i'am using laravel migrations to create the tables;

kisaw88 started a new conversation Id Incrementation Problem

i have an auto increment ID , i'am having a problem when i delete all records from the table , and then add a new row the id won't be 1, it takes on consideration the last ID of the previous table, for example when i delete all records and then add a new one it is showing 24 as its id because 23 was the last record on the previous table, how do i make it show 1 as id ?

28 Mar
5 months ago

kisaw88 left a reply on How To Add Search Functionality In A Table In Laravel

@CHRISPAGE1 - but the problem i see , is that does the search in the backend, how do i display i search bar in the blade ? like when i want to do users table pagination i can use paginate() in the controller then i can use

      {{$userss->links()}}

kisaw88 started a new conversation How To Add Search Functionality In A Table In Laravel

hello i want to add a search functionality in a table , because the table contains too much data, and also pages, so i want to give the user the ability to search through the table to easily find the searched data, i'am not familliar with VueJS so does elequent provide any solution ?

26 Mar
5 months ago

kisaw88 started a new conversation How To Import .db File In Database

how to can I import a .db file that contains users data to the users table in laravel ?

24 Mar
5 months ago

kisaw88 started a new conversation My Css Code Is Getting Overriten

hello, now i'am using laravel mix and i'am writing css in sass files , i have tested it and tried it with npm run watch , but now my css file is getting overriten by another version of bootstrap that is getting injected in all my pages always at the last of the element as you can see in this photo :

https://ibb.co/C2JvV54

you can see the two elements.

kisaw88 started a new conversation How To Write The Code For Moving Selected Elements In Multiple <select> To Another Multiple <select>

Hi, i have this code for two multiple elements with movement buttons

    <select multiple size="10" class="form-control col-md-5" style="display:inline; width:38%; margin- 
      right:2%;">
      @foreach($citernes as $citerne)
        <option value="{{$citerne->numero_de_serie}}">{{$citerne->numero_de_serie}} || {{$citerne- 
        >fabricant}} || {{$citerne->fournisseure}} || {{$citerne->prix_achat}} || {{$citerne->capacité}}</option>
      @endforeach

    </select>

    <div class="btn-group-vertical col-md-2" style=" margin-bottom:20%">
        <button type="button" class="btn btn-success btn-space">></button>
        <button type="button" class="btn btn-danger btn-space"><</button>
        <button type="button" class="btn btn-success btn-space">>></button>
        <button type="button" class="btn btn-danger btn-space"><<</button>
      </div>

    <select multiple size="10" class="form-control col-md-5" style="float:right; width:38%;">

    </select>

here is a photo :

https://ibb.co/12n43LK

i want to write a code with vueJS to make the buttons move the multiple selected on the left to be moved to the write and vice versa .

23 Mar
5 months ago

kisaw88 started a new conversation Error In App.js Module Not Found: Error: Can't Resolve 'vue'

hello, i have this error when i run npm run watch

the error came from :window.Vue = require('vue'); when i remove it the error is solved but still vue would not work in my pages ! how to solve this error ?

22 Mar
6 months ago

kisaw88 left a reply on Where To Use Vue In Laravel

@RIN4IK - i watched this but it did not gave an honest answer , like how i can make the above example work in my laravel app ? where i need to write it ?

kisaw88 started a new conversation Where To Use Vue In Laravel

hello, i want to know where and how to use vue in laravel, because for now i'am using only ressource/views folder for showing pages, but i don't know the use of ressource/sass and ressource/js , i have tried to search for an answer but i did not find something to really help me to understand how use them from scratch.

for example i want to integrate pagination in tables, i know this needs vue JS , so i have found this code in bootstrap Vue but i don't know where and how to integrate it in my laravel app :

<template>
    <div class="overflow-auto">
        <b-pagination
        v-model="currentPage"
        :total-rows="rows"
        :per-page="perPage"
        aria-controls="myTable"
        />
        <p class="mt-3">Current Page: {{ currentPage }}</p>
        <b-table
        id="myTable"
    :items="items"
    :per-page="perPage"
    :current-page="currentPage"
    small
    />
 </div>
</template>

<script>
export default {
    data() {
    return {
        perPage: 3,
        currentPage: 1,
        items: [
      { id: 1, first_name: 'Fred', last_name: 'Flintstone' },
      { id: 2, first_name: 'Wilma', last_name: 'Flintstone' },
      { id: 3, first_name: 'Barney', last_name: 'Rubble' },
      { id: 4, first_name: 'Betty', last_name: 'Rubble' },
      { id: 5, first_name: 'Pebbles', last_name: 'Flintstone' },
      { id: 6, first_name: 'Bamm Bamm', last_name: 'Rubble' },
      { id: 7, first_name: 'The Great', last_name: 'Gazzoo' },
      { id: 8, first_name: 'Mr', last_name: 'Slate' },
      { id: 9, first_name: 'Pearl', last_name: 'Slaghoople' }
    ]
  }
},
computed: {
  rows() {
    return this.items.length
  }
}

}

please can you explain to me how can i integrate this code in my laravel app, because i need this and this will help me to understand how to use sass and js folder in ressource in laravel?, thank you

20 Mar
6 months ago

kisaw88 left a reply on How To Change User Status To Unverified Email

@MANELGAVALDA - yes it is nullable and by default it is set to NULL

kisaw88 left a reply on How To Change User Status To Unverified Email

@MANELGAVALDA - whene i run the code the email_verified_at column becomes 0000-00-00 00:00:00 !!

it is supposed to ben NULL !

kisaw88 left a reply on How To Change User Status To Unverified Email

@MANELGAVALDA - no it says A four digit year could not be found Data missing

kisaw88 started a new conversation How To Change User Status To Unverified Email

hello, i'am writing a PATCH request to the users table here is the code

$user = User::where('email',$email)->get()->first();
    $user->Type_compte=request('Type_compte');
    $user->district=request('district');
    $user->cds=request('cds');
    if($user->email!=request('email')){
    $user->email=request('email');
    $user->email_verified_at='NULL';
    }
    $user->password=Hash::make(request('password'));

    $user->save();
    return redirect('/comptes');

,when the email gets changed i want to make sure that the user verifies the the new email , how do i do it ?

18 Mar
6 months ago

kisaw88 left a reply on How To Manage Files In Database

@TALINON - okay so you mean instead of writing this ??

$table->binary('pdf');

i add a column of type string that has the url of the file like this :

$table->string('pdf');

is that what you meant ?

that would be better to store the file path , specially for downloading

kisaw88 left a reply on How To Manage Files In Database

@JLRDW - this is not my question , look i have this function to create a database

    public function up()
{
    Schema::create('contrats', function (Blueprint $table) {
        $table->integer('id')->unsigned();
        $table->string('fournisseur');
        $table->string('fabricant');
        $table->integer('prix_cons')->unsigned();
        $table->integer('prix_achat')->unsigned();
        $table->integer('nb_citerne')->unsigned();
        $table->integer('capacité')->unsigned();
        $table->file('contrat');
        $table->timestamps();
    });
}

the contrat column is of type file is it true to declare it like this ?

        $table->file('contrat');

kisaw88 left a reply on How To Manage Files In Database

@JLRDW - i guess you did not get my question , i have a scanned image and i turned it to a pdf file so i would like to store it in the database so that i way i can fetch it as a pdf file .

kisaw88 started a new conversation How To Manage Files In Database

i know that we can add columns of type string and integer ....etc , but i want to know how to add a column with type pdf file and that file would be stored in the database ?

kisaw88 started a new conversation Should I Define Mysql Relations When Using Alequent

i'am just coming from jeffery way's tutorail about elequent relation

https://laracasts.com/series/laravel-from-scratch-2018/episodes/16

i did see that we can define relations between tables and make queries just like in mysql but using models.

i want to know what is the role of the elequent compared to mysql because we can see that when using elequent we don't have to define the foreign key like in mysql but it can know that is a foreign key that references another table ?

can we do all myqsl queries in elequent ? i mean is it enough to follow elequent ?

17 Mar
6 months ago

kisaw88 left a reply on Disable Send Mail Validation Message After Registration

@TYKUS - the code of that listener ment that whenever the Registered class is called you call the SendEmailVerificationNotification class also ?

kisaw88 started a new conversation Disable Send Mail Validation Message After Registration

i have the verification email activation method actived but i don't want it to send a verification email after registration i want it to be like when the user logs in and click the resend url at that moment the mail will be sent how do i do it please ?

kisaw88 left a reply on Registration Create Methode Undefined Index

@SNAPEY - you saved me man thanks, but can you explain to me the logic of that ?? null; please?

kisaw88 started a new conversation Registration Create Methode Undefined Index

i have an ... tag in my html code that would sometimes disabled by javascript it depends of the choice here is the code of the tag :

                                <select name="district" class="custom-select{{ $errors->has('district') ? ' is-invalid' : '' }}" id="dis">
                                    <option value="District Bejaia">District Bejaia</option>
                                    <option value="District batna">District batna</option>
                                    <option value="District alger">District alger</option>
                                    <option value="District sidi bel abbes">District sidi bel abbes</option>
                                    <option value="District oran">District oran</option>
                                </select>

some times the select tag is disabeled :

                                <select name="district" class="custom-select{{ $errors->has('district') ? ' is-invalid' : '' }}" id="dis" disabled>
                                    <option value="District Bejaia">District Bejaia</option>
                                    <option value="District batna">District batna</option>
                                    <option value="District alger">District alger</option>
                                    <option value="District sidi bel abbes">District sidi bel abbes</option>
                                    <option value="District oran">District oran</option>
                                </select>

when it is disabled and i try to register a new user it gives me an error of 'undefined index : district' here is the creation code : protected function create(array $data) { return User::create([ 'Type_compte' => $data['Type_compte'], 'district' => $data['district'], 'email' => $data['email'], 'password' => Hash::make($data['password']), ]); }

how to solve this error ?

15 Mar
6 months ago

kisaw88 left a reply on Email Verification Button

@S4MUEL - thank you but this one worked for me

    $url = URL::temporarySignedRoute('verification.verify',Carbon::now()-        
     >addMinutes(Config::get('auth.verification.expire', 60)),['id' => $notifiable->getKey()]);

i changed ['id' => $user->id] with ['id' => $notifiable->getKey()]

kisaw88 started a new conversation Email Verification Button

i have customized the email for account email verification, but i can not find the proper url to set to the button of the verification ? what is the url that should be assigned to the button of the email verification ?

kisaw88 left a reply on Telescope Keeps Scaning

@SIANGBOON - this is not my question , my telescope is enabled and it is showing a problem ! thank you

14 Mar
6 months ago

kisaw88 started a new conversation Telescope Keeps Scaning

hello, i'am facing a problem where my telescope is keeping scan with those errors

    Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    app.js?id=7fc4e151d161f8727fb0:1 Uncaught (in promise) Error: Request failed with status code 500
    at LYNF.p.exports (app.js?id=7fc4e151d161f8727fb0:1)
        at Rn+g.p.exports (app.js?id=7fc4e151d161f8727fb0:1)
    at XMLHttpRequest.A.(anonymous function) (http://127.0.0.1:8000/vendor/telescope/app.js?                                id=7fc4e151d161f8727fb0:1:1463772)
telescope-api/requests?tag=&before=&take=50&family_hash=:1 Failed to load resource: the server 
     responded with a status of 500 (Internal Server Error)
     app.js?id=7fc4e151d161f8727fb0:1 Uncaught (in promise) Error: Request failed with status code 500
at LYNF.p.exports (app.js?id=7fc4e151d161f8727fb0:1)
at Rn+g.p.exports (app.js?id=7fc4e151d161f8727fb0:1)
12 Mar
6 months ago

kisaw88 left a reply on How To Know Where To Override Vendor Methods

@CRONIX - okay, but the problem that i'am facing now that i don't know where to write this binding exactly in the service provider ?

kisaw88 started a new conversation How To Know Where To Override Vendor Methods

How to know where to override vendor methods , for example i want to override a method in \Illuminate\Auth\Passwords\PasswordBroker validatePasswordWithDefaults

but i don't know where to write it ?

09 Mar
6 months ago

kisaw88 left a reply on Problem In Reseting The Password

thank you the solution was :

What you are looking for is in this class:

\Illuminate\Auth\Passwords\PasswordBroker and this function

validatePasswordWithDefaults This looks a little weird that 6 is hardcoded in this function. I guess there is probably better practice for changing that. Maybe you could over-ride the function in your controller. Try that as well.

kisaw88 left a reply on How To Solve The Error 'Passwords Must Be At Least Eight Characters And Match The Confirmation.' In Laravel 5.8

i have found the solution it was :

What you are looking for is in this class:

\Illuminate\Auth\Passwords\PasswordBroker and this function

validatePasswordWithDefaults This looks a little weird that 6 is hardcoded in this function. I guess there is probably better practice for changing that. Maybe you could over-ride the function in your controller. Try that as well.

kisaw88 started a new conversation How To Change The Password Reset Validation

How to change the validation of the password when reseting a password Laravel 5.8 ?

kisaw88 started a new conversation How To Solve The Error 'Passwords Must Be At Least Eight Characters And Match The Confirmation.' In Laravel 5.8

I'am trying to configure the reset password option in laravel 5.8, i have used the php artisan make:auth to genereate all the files needed to make authentification in laravel, and now all i need to do is configure the reset password option in laravel 5.8, but after doing all the steps to configure the reset password, i have tried to reset a password via the e-mail and it worked, the email was sent, and the reset password page is succesfully displayed, when i type the email and the password and i click on reset password , if the password is less then 3 characters it gives me an error saying 'password must be at least 3 characters', now if i type a password of more then 3 characters , i gives me an error in email input saying 'Passwords must be at least eight characters and match the confirmation.', and the password if confirmed and matches the confiramtion !.

here is the rules method in the resetPasswordController :

    protected function rules()
      {
        return [
           'token' => 'required',
          'email' => 'required|email',
            'password' => 'required|confirmed|min:3',
       ];
     }

you can see it says min:3 in password.

so why does it still show 'Passwords must be at least eight characters and match the confirmation.'?

and how do i solve this problem to reset the password succefully?

08 Mar
6 months ago

kisaw88 left a reply on Problem In Reseting The Password

i'm respecting the rule in the input but it is showing the error ! but if i don't respect it does show me this error :

    The password must be at least 3 characters.

kisaw88 left a reply on Problem In Reseting The Password

okay , i have overidden rules method in PasswordResetsController and maked the min to 3 but it is still showing a password error in the email input !! :

Passwords must be at least eight characters and match the confirmation.

i mean i'm asking it to verify that the password is minimum 3 caracters and i respect it i type a password of 8 caracters but it is showing this error in the email input ! so weird this is the rules method :

    protected function rules()
{
    return [
        'token' => 'required',
        'email' => 'required|email',
        'password' => 'required|confirmed|min:3',
    ];
}

kisaw88 left a reply on Problem In Reseting The Password

on the Illuminate\Foundation\Auth\ResetsPasswords in the rules method

kisaw88 left a reply on Problem In Reseting The Password

@CRONIX - i did say in my question that i changed the minimum password size to 3 so i want it to be minimum 3 and not eight , so now the password resetting is not working because of this error, and i want to solve this error not just the source of the error message 'style' i want to reset my password,and not get this error , i hope you got my question, thank you

kisaw88 left a reply on Problem In Reseting The Password

@CRONIX - yes i know from that file i can modify the error message, but i did not why it is showing this message ?

kisaw88 left a reply on Problem In Reseting The Password

@CRONIX - where this problem come from ?

kisaw88 started a new conversation Problem In Reseting The Password

when i try to reset a user password i get this error displayed in the email input (i have changed the password minimum size to 3 in the validator ) :

    Passwords must be at least eight characters and match the confirmation

can any one tell me where it comes from ? and how to solve it ?