nanadjei2

nanadjei2

Member Since 3 Years Ago

Experience Points 14,710
Experience Level 3

290 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 32
Lessons
Completed
Best Reply Awards 1
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.

26 May
3 weeks ago

nanadjei2 left a reply on Database Seeding

else { factory(\App\OrderEstimatedWeights::class, 4)->create([ 'order_id' => $order->id, 'service_package_id' => function ($order) use ($faker) { for ($i = 0; $i <= $order; $i++) { return $faker->unique()->randomDigitNotNull; } }, 'number_of_items' => function ($order) use ($faker) { for ($i = 0; $i < $order; $i++) { return $faker->numberBetween(1, 8); } } ]); }

nanadjei2 started a new conversation Database Seeding

My app allows users to place an order. I render two types of services which are Wash and fold and Wash and iron. and each of them has packages under them. Wash and fold take only one package at a time but wash and iron can take multiple packages. Anytime an order is placed, I send the order_id and the service_package_id to a separate table so that I can track the type of service package for a particular order. I am seeding my database and want packages under wash and iron to have multiple service packages. Eg:

public function run(Faker $faker)
    {
      $orders = \App\Order::all();

      foreach ($orders as $order) {
        if ($order->service->slug == 'wash-and-fold') {
            factory(\App\OrderEstimatedWeights::class, 1)->create([
                'order_id' => $order->id,
                // 'service_package_id' => ServicePackage::where('service_id', $order->service->id)->get()->random()->id,
                'service_package_id' => $faker->numberBetween(1, 4)
            ]);
         } else {
            factory(\App\OrderEstimatedWeights::class, 4)->create([
                'order_id' => $order->id,
                // 'service_package_id' => ServicePackage::where('service_id', $order->service->id)->get()->random()->id,
                'service_package_id' => $faker->numberBetween(4, 8),
                'number_of_items' => $faker->numberBetween(5, 15)
             ]);
         }
     }
 }
11 Apr
2 months ago

nanadjei2 left a reply on Display Time In Edit Form.

Thank you all for your time. I really appreciate.

nanadjei2 left a reply on Display Time In Edit Form.

instead of checking if $record->time_of_incident is set am rather checking if $record->incident_time is set.

    <input type="time" class="form-control{{ $errors->has('incident_time') ? ' is-invalid' : '' }}" id="incidentTime" name="incident_time" value="{{ old('incident_time', isset($record->time_of_incident) ? $incident->time_of_incident : null) }}" placeholder="Incident Time" required>

nanadjei2 left a reply on Display Time In Edit Form.

I have formatted the time with \Carbon\Carbon::createFromFormat('H:i:s', $record->time)->format('h:i') and am not getting:

    "06:03" 

but still does not work

nanadjei2 left a reply on Display Time In Edit Form.

@devfrey if I dd($record->time) I get "06:03:00"

nanadjei2 started a new conversation Display Time In Edit Form.

I have a time data coming from my DB which I want to display in a form for editing. But the time is not displaying.

<input type=“time” value=“{{$record->time}}“

Can anyone be of help... Thank you

13 Mar
3 months ago

nanadjei2 left a reply on Images Not Appearing In Production

Please check the App_URL in the .env file.

nanadjei2 started a new conversation Command "scout:make-aggregator" Is Not Defined.

Am trying out Algolia search and wanted to search across multiple models. Before I can be able to do that I need to run php artisan scout:make-aggregator NameOfAggregator but I keep getting this error in the terminal Command "scout:make-aggregator" is not defined..

29 Nov
6 months ago

nanadjei2 left a reply on Request Status Code 404 Not Found

Yeah that is where am pointing to.

nanadjei2 left a reply on Request Status Code 404 Not Found

Still not working

nanadjei2 started a new conversation Request Status Code 404 Not Found

I moved my project into production and from then I keep getting Status Code: 404 Not Found. In my console as a result of that my ajax call are not working. And they all return this same response. Can any one help me ?

09 Aug
10 months ago

nanadjei2 left a reply on Where Are You All From?

Am Elvis Adjei from Ghana currently working for a company called Qodehub and we use Laravel.

19 Jun
11 months ago

nanadjei2 left a reply on Do You Put Multiple Users In The `users` Table Or Create Separate Tables For Each Of Them `customer` And`admin`

Thank you all for your contribution. I think the decision is clear now :)

nanadjei2 started a new conversation Do You Put Multiple Users In The `users` Table Or Create Separate Tables For Each Of Them `customer` And`admin`

I have been contemplating about this issue for a while. Please I want to know if you are asked to create multiple users for the app where customers, admins, and auditors will be using it, will you create separate tables for them or you you will create a single table and assign roles and permissions ?

07 Jun
1 year ago

nanadjei2 started a new conversation Model::updateOrCreate Actually Updates But Does Not Create When Record Does Not Exist

I am building an app where if a user wants to update records he/she can edit and add more fields so that does data in the fields can be added to the already existing records and he/she edited anything that too can change successfully. I hope you get the basic idea.

This is my HTML:

     <table class="table table-bordered">
    <thead>
        <tr>
            <th>#</th>
            <th>Contraceptive pill</th>
            <th>UID</th>
            <th>Implant</th>
            <th>Injectable</th>
            <th>Male condom</th>
            <th>Female condom</th>
            <th>Fertility awareness</th>
            <th>Withdrawal</th>
            <th>Sterilization</th>
            <th>Emergency contraceptive</th>
            <th>Actions</th>
        </tr>
    </thead>
   <tbody id="test-inputs">
                
        <tr v-for="(option, index) in options">

        <td>@{{ index + 1}}</td>

        <td>
            <input class="form-control" :class="`optionId${option.id}`" 
                   type="number" name="contraceptive_pills[]" :value="option.contraceptive_pill" required> 

            </td>

        <td> <input class="form-control" :class="`optionId${option.id}`" 
                type="number" name="uids[]" :value="option.uid" required> 
        </td>

        <td> <input class="form-control" :class="`optionId${option.id}`" 
                type="number" name="implants[]" :value="option.implant" required> 
        </td>

        <td> <input class="form-control" :class="`optionId${option.id}`" 
                type="number" name="injectables[]" :value="option.injectable" required> 
        </td>

        <td> <input class="form-control" :class="`optionId${option.id}`" 
                type="number" name="male_condoms[]" :value="option.male_condom" required> 
        </td>

        <td> <input class="form-control"  :class="`optionId${option.id}`" 
                type="number" name="female_condoms[]" :value="option.female_condom" required> 
        </td>

        <td> <input class="form-control" :class="`optionId${option.id}`" 
                type="number" name="fertility_awareness[]" :value="option.fertility_awareness" required> 
        </td>

        <td> <input class="form-control" :class="`optionId${option.id}`" 
                type="number" name="withdrawals[]" :value="option.withdrawal" required> 
        </td>

        <td> <input class="form-control" :class="`optionId${option.id}`" 
                type="number" name="sterilizations[]" :value="option.sterilization" required> 
        </td>

        <td> <input class="form-control" :class="`optionId${option.id}`" 
                type="number" name="emergency_contraceptives[]" :value="option.emergency_contraceptive" required> 
        </td>
                            
        <td>
                        
        <a :id="`deleteBtn${option.id}`" @click.prevent="deleteRow(index, option.id)" 
                        :href="`${baseUrl}/delete/${option.id}`" 
                            type="submit" class="btn btn-danger" title="delete"><i class="fa fa-trash"></i>
                  </a>

        </td>   
                                            
        </tr>
                    
            </tbody>
        </table>

    <div class="form-group" style="padding-bottom: 10px;">
        <button type="submit" class="btn primary"><i class="fa fa-save"></i> Update</button>
    </div>

This is my script that will add new set of form:

     populateNewTestForms() {
            $('#test-inputs').append(`
                <tr>

            <td>${this.incrementTableCounter+=1}</td>
                        
            <td><input class="form-control" type="number" name="contraceptive_pills[]" required> </td>

            <td> <input class="form-control" type="number" name="uids[]" required> </td>

            <td> <input class="form-control" type="number" name="implants[]" required> </td>

            <td> <input class="form-control" type="number" name="injectables[]" required> </td>

            <td> <input class="form-control" type="number" name="male_condoms[]" required> </td>

            <td> <input class="form-control" type="number" name="female_condoms[]" required> </td>

            <td> <input class="form-control" type="number" name="fertility_awareness[]" required> </td>

            <td> <input class="form-control" type="number" name="withdrawals[]" required> </td>

            <td> <input class="form-control" type="number" name="sterilizations[]" required> </td>

            <td> <input class="form-control" type="number" name="emergency_contraceptives[]" required> 
            </td>
                            
            <td>
                            
    <button type="button" onclick=" $(this).closest('tr').remove(); " class="btn btn-danger" title="delete"><i class="fa fa-trash"></i></button>

            </td>   
                                            
        </tr>
            `);

This is my controller :

   foreach ($request->option_ids as $option_id) {
            
            TestOption::updateOrCreate(['id'   =>  $option_id], [

                'test_id'   =>  $test->id,

                'name'      =>  $request->names[$i],

                'contraceptive_pill'      =>  $request->contraceptive_pills[$i],

                'uid'     =>  $request->uids[$i],

                'implant'     =>  $request->implants[$i],

                'injectable'     =>  $request->injectables[$i],

                'male_condom'     =>  $request->male_condoms[$i],      

                'female_condom'     =>  $request->female_condoms[$i],

                'fertility_awareness'     =>  $request->fertility_awareness[$i],

                'withdrawal'     =>  $request->withdrawals[$i],

                'sterilization'     =>  $request->sterilizations[$i],

                'emergency_contraceptive'     =>  $request->emergency_contraceptives[$i]

                ]);

It is able to update but not create. Thank you.

01 Jun
1 year ago

nanadjei2 left a reply on Image Upload With Intervention Image - Error "Image Source Not Readable"

     const fileInput = document.querySelector( '#image' );
     const formData = new FormData();
      formData.append( 'image', fileInput.files[0] );

      axios.post( '/spa/slider/images/', formData )
    .then( ( response ) => {
           console.log(response.data);
      } )
        .catch( ( error ) => {
    console.log(error.response);
     } );

@Cronix Thank you so much. Your solution worked.

@jake.admin@gmail.com Thank you for the tip as well.

31 May
1 year ago

nanadjei2 started a new conversation Image Upload With Intervention Image - Error "Image Source Not Readable"

I am creating a single page application with vue.js and laravel. I want to upload an Image with ajax but I keep getting this error "Image source not readable"

This is my vue component.

     <form @submit.prevent="create" action="/spa/slider/images/" method="POST" enctype="multipart/form-data">

    <div class="box">
        <div class="box-header">
            <h2>Slider Image</h2>

        </div>
        <div class="box-divider m-0"></div>

        <div class="box-body">
            <div class="form-group">
                <input id="image" type="file" class="form-control" :class="{ 'is-invalid': errors.has('image') }" name="image" v-validate="'required|image'" >
                            <span :class="`invalid-feedback`" v-show="errors.has('image')"><strong>{{ errors.first('image') }}</strong></span>
            </div>
        </div>
    </div>
    <div class="form-group">
        <button type="submit" class="btn primary"><i class="fa fa-check"></i> Submit</button>
   </div>
</form> 

This is my ajax

   create() {
        let $this = this;

        this.$validator.validateAll().then(() => {

            axios({

            method: 'POST',

            url: '/spa/slider/images/',

            data: {
                token: this.token,
                image: $('#image').val()
            }

          }).then((response) => {
              console.log(response.data);

          }).catch((error) => {
              console.log(error.response);

          });

        });
        
      } // create function ends here

This is my controller:

   if($file = $request->has('image')) {
            /***********************  Extra-small Devices  ************************/  
            $drawable_mdpi = time().'xsm' . '.' . $request->image;

            Image::make($request->image)->resize(401, 267)
                ->save(SliderImage::imageHandlerType('upload', $drawable_mdpi));

    SliderImage::create([

               'drawable_mdpi'     =>  $drawable_mdpi
        ]);
    }
30 May
1 year ago

nanadjei2 left a reply on How To Get Falsh Messages In Laravel Like Alert In Java Script?

Unless you use a plugin or a package like https://github.com/uxweb/sweet-alert. Hope this helps.

10 May
1 year ago

nanadjei2 left a reply on Checkbox Toggle Value Not Returning

If I do that, I dont get my checkboxes checking like so: https://pasteboard.co/HkvuQKZ.jpg

nanadjei2 started a new conversation Checkbox Toggle Value Not Returning

This is my html:

      <tr v-for="(user, index) in users">
    <td>@{{ index + 1 }}</td>
    <td v-text="user.name"></td>
    <td>@{{ user.email }}</td>
    <td>@{{ user.status }}</td>
    <td>
        <div class="btn-group pull-rights" role="group" aria-label="action-btns">
        <form :id="`statusform${user.id}`" :action="`${baseUrl}/${user.id}/update/status`" method="POST">
        {{ csrf_field() }} {{ method_field('PUT') }}
    <label class="ui-switch mt-1 mr-2">
     <input :id="`checkbox${user.id}`" @click="onSwitchStatus(user.id)" type="checkbox" name="status" true-value="active" false-value="inactive" :value="user.status" v-model="statuses=user.status">
    <i></i>
         </label>
    </form>

    </div>
  </td>
</tr>

This is my script:

    const vm = new Vue({

    el: '#vueHook',

    data: {

        statuses: [],

        baseUrl: baseUrl+'/admin/manage/users',

        users: [
            { id:'1', name:'Prof. Kathryne Waelchi', email:'[email protected]', status: 'active' },
            { id:'2', name:'Monique Leannon', email:'[email protected]', status: 'inactive' },
            { id:'3', name:'Magnus Waelchi', email:'[email protected]', status: 'active' },
            { id:'4', name:'Ms. Laurianne Simonis', email:'[email protected]', status: 'inactive' },
            { id:'5', name:'Dr. Doris Runte', email:'[email protected]', status: 'inactive' },
            { id:'6', name:'Imani Smitham', email:'[email protected]', status: 'active' },
            { id:'7', name:'Mrs. Mozell Keeling', email:'[email protected]', status: 'active' },
            { id:'8', name:'Sylvester Kemmer III', email:'[email protected]', status: 'inactive' },
            { id:'9', name:'Percival Kerluke', email:'[email protected]', status: 'inactive' },
                        
        ]

    },

    methods: {

        axiosHeaders() {
            axios.create({
                timeout: 1000,
                headers: {'X-Custom-Header': token}
            });
        },

        onSwitchStatus(id) {
            let $this = this;

            $('#statusform'+id).submit(function(e) {
                e.preventDefault();
            });

            this.axiosHeaders();

            console.log(this.statuses);
          
        }
    
    }

})
08 May
1 year ago

nanadjei2 left a reply on Array Data Not Storing In Database

Sorry guys the issue is reserved. The data was returning to the db successfully but because I have tried couple of times it exceeded the number of data to display per page so I should have clicked on next to show the next set of data which I was still viewing the 1st page :(

nanadjei2 left a reply on Array Data Not Storing In Database

@AlexDemin I still get the exact same thing. And data does not show in db.

@tykus Am getting Undefined variable: test

nanadjei2 started a new conversation Array Data Not Storing In Database

Am building an app where users can add more input fields and store data those data all at once: test_id, name and score in a table called TestOptions. I get my success message but data not present in database.

This is my view:

   <div class="form-group row">
       <div class="col-md-10">
         <input type="text" class="form-control" name="name[]" id="testOptions" value="">
      </div>
    <div class="col-md-2">
         <input type="text" class="form-control" name="score[]" id="testOptions" value="">
      </div>
  </div>

  <div class="form-group row">
       <div class="col-md-10">
         <input type="text" class="form-control" name="name[]" id="testOptions" value="">
      </div>
    <div class="col-md-2">
         <input type="text" class="form-control" name="score[]" id="testOptions" value="">
      </div>
  </div>

This is my controller:

  public function store(Request $request)
      {
        //dd($request->name, $request->score); 

        $request->validate(Test::$rules);

        $test = Test::create(['title' =>  $request->title, 'question' =>  $request->question]);

        $i = 0;

        foreach ($request->name as $option) {

           \App\TestOption::create([

                'test_id'   =>  $test->id,

                'name'      =>  $option,

                'score'     =>  $request->scores[$i]
                
            ]);

           $i++;
       }
    

        return back()->with('success', 'You have successfully added a new test');

     }
07 May
1 year ago

nanadjei2 left a reply on Add Id From V-for To Dom Elements

@wilk_randall Please you don't get me. My problem is not to display a counter. Kindly look at

   <form id="statusform" :action="baseUrl+/user.id" method="POST">

baseUrl = '‘localhost/project/user/edit/' therefore I want to the action="‘localhost/project/user/edit/1/" but am still getting "baseUrl+/user.id"

nanadjei2 started a new conversation Add Id From V-for To Dom Elements

I am making a for loop with vuejs and displaying a list of users in a table. I want to add the id of users to the action attribute of a form element or classes of the elements in the table items.

This is my html:

@{{ key+1 }} @{{ user.email }} @{{ user.status }} Am using laravel. I want the action attribute of the form to be for example… ‘localhost/project/user/edit/1/’ but it is not working. Can anyone help me;

nanadjei2 left a reply on Htmlspecialchars() Expects Parameter 1 To Be String, Array Given

these are my testOption rules:

  protected $fillable = ['test_id', 'name', 'score'];

   // The rules for form validation
   public static $rules = [

       'name'           => 'required|array|min:2',

       'name.*'         => 'required|distinct|min:2',

       'score'          =>  'required|array|numeric',

       'score.*'        =>  'required|distinct|numeric'
    ];

I don't know if am right.

nanadjei2 left a reply on Htmlspecialchars() Expects Parameter 1 To Be String, Array Given

Thank you but I have return 'Passed validations'; So when the code is running it does not pass that point and then it returnshtmlspecialchars() expects parameter 1 to be string, array given

nanadjei2 left a reply on Htmlspecialchars() Expects Parameter 1 To Be String, Array Given

I have updated the question with my controller and a relationship

nanadjei2 started a new conversation Htmlspecialchars() Expects Parameter 1 To Be String, Array Given

I am trying to post an array of data. But I keep getting this error htmlspecialchars() expects parameter 1 to be string, array given

This is my view:

    <div class="form-group row">
    <div class="col-md-10">
        <input type="text" class="form-control" name="name[]" id="testOptions" placeholder="Enter option two"
        value="{{ old('name.1') }}">
    </div>
    <div class="col-md-2">
        <input type="text" class="form-control" name="score[]" id="testOptions" placeholder="Enter option two score"
        value="{{ old('score.1')}}">
    </div>
</div>

<div class="form-group row">
    <div class="col-md-10">
        <input type="text" class="form-control" name="name[]" id="testOptions" placeholder="Enter option two"
        value="{{ old('name.2') }}">
    </div>
    <div class="col-md-2">
        <input type="text" class="form-control" name="score[]" id="testOptions" placeholder="Enter option two score"
        value="{{ old('score.2') }}">
    </div>
</div>

<div class="form-group row">
    <div class="col-md-10">
        <input type="text" class="form-control" name="name[]" id="testOptions" placeholder="Enter option two"
        value="{{ old('name.3') }}">
    </div>
    <div class="col-md-2">
        <input type="text" class="form-control" name="score[]" id="testOptions" placeholder="Enter option two score"
        value="{{ old('score.3') }}">
    </div>
    </div>

If I dd($request->all(). I get...

  "name" => array:4 [▼
    0 => "Keelie Bennett"
    1 => "Solomon Pierce"
    2 => "Jessica Crosby"
    3 => "Kaden Thomas"
  ]

  "score" => array:4 [▼
   0 => "12"
    1 => "21"
   2 => "31"
   3 => "21"
  ]
04 May
1 year ago

nanadjei2 left a reply on Get The User Who Belongs To A Thread.

Thank you so much everything works fine

03 May
1 year ago

nanadjei2 left a reply on Get The User_id Of A Guard

@Vilfago Thank you man. You nailed it. Thank you too @Cronix

nanadjei2 left a reply on Get The User_id Of A Guard

   public function store(Request $request)
      {
         return Auth::guard('admin')->id; // to check if the id is returning successfully

         $request->validate(Thread::$rules);

         Thread::create([

            'user_id'           =>  Auth::guard('user') ? 
                                    Auth::guard('user')->id : 
                                    Auth::guard('admin')->id ,

            'category_id'       =>  $request->category_id,

            'title'             =>  $request->title,

            'content'           =>  $request->content,

            'status'            =>  $request->status

           ]);

        return back()->with('success', 'A new thread has been successfully created');
     }

nanadjei2 started a new conversation Get The User_id Of A Guard

I want to get the id of an authenticated admin user of my application but it returns error Undefined property: Illuminate\Auth\SessionGuard::$id

nanadjei2 left a reply on Get The User Who Belongs To A Thread.

wooow... Thank you man. It worked.

I will do that for comments and see how it will work out. When anything comes up I will let you know then I will mark your answer as the best one. Thank you so much for your time.

nanadjei2 started a new conversation Get The User Who Belongs To A Thread.

I have a threads table where either a user or admin can post a new thread.That means I have a "users table" and "admin table" . I want to retrieve the user's name of each thread. Can anyone help me out please.

This is my migrations;

  public function up()
       {
          Schema::create('threads', function (Blueprint $table) {
              $table->engine = 'InnoDB';
             $table->increments('id');
              // $table->unsignedInteger('user_id')->reference('id')->on('users')->onDelete('restrict');
        
             $table->unsignedInteger('user_id');
             $table->string('user_type', 50)->nullable();

             $table->unsignedInteger('category_id')->reference('id')->on('categories')->onDelete('restrict');        
             $table->string('title');
             $table->text('content');
             $table->bigInteger('likes')->nullable();
             $table->bigInteger('views')->nullable();
             $table->enum('resolved_status', ['Resolved', 'Awaiting...'])->default('Awaiting...');
             $table->enum('status', ['Draft', 'Published'])->default('Draft');
             $table->timestamps();
           });
       }

This is my relationship in Threads.php

              public function user()
            {
                 return $this->morphMany(User::class, 'users', 'user_type', 'user_id');
            }

This is the link to my db image https://pasteboard.co/HjsK6hd.jpg

02 May
1 year ago

nanadjei2 started a new conversation How Do I Write A View Counter Logic - The Number Of People Who Read A Particular Thread?

I am building an app where I want to implement a view counter where I could count the number of users viewing a particular thread and also prevent an already existing viewed user from adding up to the count once again.

Thank you.

28 Apr
1 year ago

nanadjei2 left a reply on Pjax And Script Loading

@push('scripts') $(document).ready(function() { ..... }); @endpush

25 Apr
1 year ago

nanadjei2 left a reply on Prevent .env File From Been Accessed On A Server.

Please how do I determine if it is Apache/nginx?

nanadjei2 started a new conversation Prevent .env File From Been Accessed On A Server.

I have a shared host website but I want to prevent .env file from been access from outside. Please how do I do it?

05 Apr
1 year ago

nanadjei2 left a reply on Hide Url Parameters

Thank you guys. I was supposed to do a redirect not return a view.

nanadjei2 left a reply on Hide Url Parameters

@liquidsword Yeah am using slydepay.

nanadjei2 started a new conversation Hide Url Parameters

I am making a request to an api but the call back url has gotten some parameters in it.

For example: http://localhost/project/donate/payment/callback?status=0&transac_id=&pay_token=&cust_ref=******

How do make only http://localhost/project/donate/payment/callback show in the address bar when redirecting ?

28 Mar
1 year ago

nanadjei2 left a reply on Testing Mailtrap.io On A Server

Please do kindly assist me with the configuration of a shared host email with laravel.

nanadjei2 left a reply on Testing Mailtrap.io On A Server

@Snapey Am not using it as my actual mail service. I wanted to know if my nothing has broken and the mail still works as locally that is all what I wanted to do.