Babara

Babara

Member Since 4 Weeks Ago

Experience Points
180
Total
Experience

4,820 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
0
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
180 XP
Feb
10
2 weeks ago
Activity icon

Replied to Uploading Image To Folder And Saving Path To Database On A Product Form

Here is my blade



<!-- Website Field -->
<div class="form-group col-sm-6">
    {!! Form::label('website', 'Website:') !!}
    {!! Form::text('website', null, ['class' => 'form-control', 'placeholder'=>'https://', 'required']) !!}
</div>

<!-- Product Name Field -->
<div class="form-group col-sm-6">
    {!! Form::label('product_name', 'Product Name:') !!}
    {!! Form::text('product_name', null, ['class' => 'form-control' , 'required']) !!}
</div>

<!-- Product Url Field -->
<div class="form-group col-sm-6">
    {!! Form::label('product_url', 'Product Url:') !!}
    {!! Form::text('product_url', null, ['class' => 'form-control', 'required']) !!}
</div>

<!-- Category Field -->
<div class="form-group col-sm-6">
    {!! Form::label('category_id', 'Size:') !!}
    {!! Form::text('category_id', null, ['class' => 'form-control', 'required']) !!}
</div>

<!-- Company Name Field -->
<div class="form-group col-sm-6">
    {!! Form::label('company_name', 'Company Name:') !!}
    {!! Form::text('company_name', null, ['class' => 'form-control', 'required']) !!}
</div>

<!-- Callback Url Field -->
<div class="form-group col-sm-6">
    {!! Form::label('callback_url', 'Callback Url:') !!}
    {!! Form::text('callback_url', null, ['class' => 'form-control', 'required']) !!}
</div>

<!-- Qrcode Path Field -->
{{-- <div class="form-group col-sm-6">
    {!! Form::label('qrcode_path', 'Qrcode Path:') !!}
    {!! Form::text('qrcode_path', null, ['class' => 'form-control']) !!}
</div> --}}

<!-- Description Field -->
 <div class="form-group col-sm-6">
   
    {!! Form::label('description', 'Description:') !!}
    {!! Form::text('description', null, ['class' => 'form-control']) !!}
</div> 

<!-- product image Field -->
 <div class="form-group col-sm-6">
 {{form::route('qrcodes.store','files'=>true])}}
    {!! Form::label('image', 'Product image:') !!}
    {!! Form::file('image', null, ['class' => 'form-control']) !!}
    
</div> 


<!-- Amount Field -->
<div class="form-group col-sm-6">
    {!! Form::label('amount', 'Amount($):') !!}
    {!! Form::number('amount', null, ['class' => 'form-control' , 'required']) !!}
</div>

<!-- Status Field -->
<div class="form-group col-sm-6">
    {!! Form::label('status', 'Status:') !!}
    <label class="checkbox-inline">
        {!! Form::hidden('status', 0) !!}
        {!! Form::checkbox('status', '1', '1') !!} Active
    </label>
</div>


<!-- Submit Field -->
<div class="form-group col-sm-12">
    {!! Form::submit('Save', ['class' => 'btn btn-primary']) !!}
   
</div>
Activity icon

Replied to Uploading Image To Folder And Saving Path To Database On A Product Form

here is my QrcodeController

   {
        //image upload
        $photoName=time().'.'.$request->image->getClientOriginalExtention();
           $request->image->move(public_path('images'), $photoName); 
Activity icon

Replied to Uploading Image To Folder And Saving Path To Database On A Product Form

Here is my migration table


use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateQrcodesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('qrcodes', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('user_id');
            $table->integer('category_id');
            $table->string('website')->nullable();
            $table->string('product_name');
            $table->string('product_url');
            $table->string('image');
            $table->string('description');
            $table->string('company_name');
            $table->string('callback_url');
            $table->string('qrcode_path')->nullable(); //path to where qrcode image is saved on server
            $table->float('amount',10,4);
            $table->tinyInteger('status')->default(1)->nullable();
            $table->softDeletes();
            $table->timestamps();
        });
    }

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

Replied to How To Retrieve Data From Database With Laravel And Multiply By A Certain Percentage Ever24 Hours

I already have a field in my database called "image"..my challenge is pulling the request in the product controller so that the image uploads along side with other fields.

Activity icon

Replied to How To Retrieve Data From Database With Laravel And Multiply By A Certain Percentage Ever24 Hours

Good morning Mr Bobby, I have a little challenge file upload to the database..I have been able to create a form with fields that displays product details.i want to add an image field that will accompany the other product details but don't know how to go around it

Activity icon

Started a new Conversation Uploading Image To Folder And Saving Path To Database On A Product Form

Hi guys, am working on a Laravel website . I'm kinda intermediate. i have an issue with uploading the image on a form i have created for products that should be displayed on a web page.every other thing works fine except that.i want the image saved in a folder and the path saved to database.

Jan
29
4 weeks ago
Activity icon

Replied to How To Retrieve Data From Database With Laravel And Multiply By A Certain Percentage Ever24 Hours

I will gladly appreciate it if you could practically walk me through. Thank you

Activity icon

Replied to How To Retrieve Data From Database With Laravel And Multiply By A Certain Percentage Ever24 Hours

Thanks for the quick assist. I want the original value multiplied by the specified percentage and display the new value. For instance a user makes payment with PayPal on my site..I am able to retrieve the amount paid and stored in the database but I want that amount multiplied by a certain % every 24 hours automatically. E.g:

  1. User paid $50 with PayPal or credit card.
  2. $50 is saved in the amount column in my database.
  3. Amount is echoed in user dashboard
  4. I want amount to multiply by 5% every 24hours on user dashboard.
Jan
28
4 weeks ago
Activity icon

Started a new Conversation How To Retrieve Data From Database With Laravel And Multiply By A Certain Percentage Ever24 Hours

Hello guys, please I am building a laravel app where users make payment online and the amount is stored on the database. I want to be able to call the amount from the database so it displays on the specified user's dashboard that made the payment. Secondly, I want the amount to multiply by a certain percentage every 24 hours. Please any help or assist on how to go around this... I'm new to php