jeremihza

jeremihza

Member Since 5 Months Ago

Experience Points
2,240
Total
Experience

2,760 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
6
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
2,240 XP
Nov
04
1 week ago
Activity icon

Started a new Conversation "message": "Server Error" Response After Clicking Submit

$email = User::where('id', $applicantId)->value('email');

Mail::to($email)->send(new BursaryEmail());

Sep
11
2 months ago
Activity icon

Started a new Conversation Show / Hide Password Input Values::need Help In This.need To Insert The Show Or Hide Password

input id="password" type="password" placeholder="Password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="current-password"> @error('password')

Sep
09
2 months ago
Activity icon

Started a new Conversation Currency Commas: I Need To Put Commas When I Enter Any Currency Digit Like I Need Commas To Appear

                                    <input v-model="form.mincome" type="number" name="mincome"
                                        class="form-control" :class="{ 'is-invalid': form.errors.has('mincome') }">
                                    <has-error :form="form" field="mincome"></has-error>
                                </div>
Aug
16
3 months ago
Activity icon

Started a new Conversation Laravel Vue Controllers

everytime i build an mostly i only get a challenge whn setting up controllers..azn thats my biggest challenge..how can i understand them well apart from documentation which im finding it difficult to understand...any link tutorils based on controllers id appreciate

Aug
14
3 months ago
Activity icon

Replied to Image Display Not Showing In Cpanel

it works perfectly in localhost i just uploaded it on my cpanel server but its not viewing

Activity icon

Started a new Conversation Image Display Not Showing In Cpanel

ive hosted my app in cpaneel but image view is not showing ..local host is fyn but after hosting nothing shows heres my code

                <div class="modal-body">
                    <img :src="'../uploads/' + this.photo" alt="" style="width: 400px;">
                </div>
Aug
11
3 months ago
Activity icon

Started a new Conversation The Script Has An Unsupported MIME Type ('text/html').

when i log in to my system the url reads http://localhost:8000/service-worker.js any solution to this

Aug
03
3 months ago
Activity icon

Started a new Conversation Vuejs And Laravel Help

i have an upload.blade which im inserting in vuejs project when i click on the upload.blade link at the sidebar,the view shows up in all pages.....its like they are not combining.....is there a way to avoid these collision

Jul
31
3 months ago
Activity icon

Replied to Need To Upload Doc File..help In Modifying Controller

i need it to accept uploading doc and pdf thats my challenge

Activity icon

Replied to Need To Upload Doc File ..help In Modifying Controller

i want it to aaccept doc files and pdf for upload

Activity icon

Started a new Conversation Need To Upload Doc File..help In Modifying Controller

class ImageController extends Controller { // public function index(){ $files = FileUpload::all();

    return ['files'=> $files];
}
public function store(Request $request)
{
    if($request->get('image'))
       {
          $image = $request->get('image');
          $name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];
          \Image::make($request->get('image'))->save(public_path('images/').$name);
        }
    $image = new FileUpload();
    $image->image_name = $name;
    $image->save();

    return response()->json(['success' => 'You have successfully up loaded an image'], 200);     
}

public function download($fileName){
     $file_path = public_path('images/'. $fileName);
     $header = array('Content-Type' => , 'application/pdf');
     return response()->download($file_path);
}

}
Activity icon

Started a new Conversation Need To Upload Doc File ..help In Modifying Controller

class ImageController extends Controller { // public function index(){ $files = FileUpload::all();

    return ['files'=> $files];
}
public function store(Request $request)
{
    if($request->get('image'))
       {
          $image = $request->get('image');
          $name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];
          \Image::make($request->get('image'))->save(public_path('images/').$name);
        }
    $image = new FileUpload();
    $image->image_name = $name;
    $image->save();

    return response()->json(['success' => 'You have successfully up loaded an image'], 200);     
}

public function download($fileName){
     $file_path = public_path('images/'. $fileName);
     $header = array('Content-Type' => , 'application/pdf');
     return response()->download($file_path);
}
Jul
30
3 months ago
Activity icon

Replied to Question About Vuejs

90% of my project is made in vuejs......i need to add some functions like uploading something on a project and also calculating but these two i can only acoomplish them with non vuejs..meaning they are in the form of upload.blade.php and calculate.blade.php so i find it hard mixing them cz they are not showing up when i call them by route

Activity icon

Started a new Conversation Question About Vuejs

is it possible to mix vuejs files with non vue laravel files without any collision...like upload.vue,register.vue ,dashboard.vue then on the other side u have books.blade.php ,calender.blade.php can we mixx them ?

Jul
22
3 months ago
Activity icon

Started a new Conversation Route [fileUpload] Not Defined. (View: C:\wamp64\www\ckcmain12\resources\views\layouts\dashboard.blade.php)

Route::group(['middleware' => 'web'], function () { Route::get('fileUpload', function () { return view('fileUpload'); }); Route::post('fileUpload', ['as'=>'fileUpload','uses'=>'[email protected]']);

});

Jul
21
3 months ago
Activity icon

Started a new Conversation Algorithm

i have users database and a calendar where i can register different events........so i need to post 5 users in each event automatically....... already i have users and can register events on different dates ..problem is the idea of generating 5 users in each event

Activity icon

Replied to Timetable Algorithm

i have users database and a calendar where i can register different events....that's where i am ....so i need to post 5 users in each event automatically....... already i have users and can register events on different dates ..problem is the idea of posting 5 users in differnent in each event

Jul
18
3 months ago
Activity icon

Started a new Conversation Route [calender.index] Not Defined. (View: C:\wamp64\www\ckcmain\resources\views\layouts\dashboard.blade.php)

Route::get('calendar', '[email protected]')->name('calendar.index'); Route::get('calendar/external', '[email protected]')->name('calendar.external'); Route::get('calendar/add-event', '[email protected]')->name('calendar.add_event'); Route::post('calendar/store-event', '[email protected]')->name('calendar.store_event'); Route::post('calendar/update-event/{id}', '[email protected]')->name('calendar.update_event'); Route::get('calendar/delete-event/{id}', '[email protected]')->name('calendar.delete_event');

Jul
15
4 months ago
Activity icon

Started a new Conversation Timetable Algorithm

i have a church system....need to makes its calender to reshuffle or place pastors or leader in specific dates not repeating them on aany day but on a single day.

Jul
08
4 months ago
Activity icon

Replied to Image Source Not Readable

$destinationPath = "assets/images/profile/"; Input::file('photo')->move($destinationPath, "$id.jpg"); $path = public_path("assets/images/profile/$id.jpg"); Image::make($path)->resize( 150, null, function ($constraint) { $constraint->aspectRatio(); } )->save($path); }

Agent::where("id", $id)->update($data);
\Session::flash('flash_message', 'Profile Update Successfully');
return redirect('admin/profile');

}

edit it in this cause im getting an error

Activity icon

Started a new Conversation Image Source Not Readable

if (!empty(Input::file('photo')) and Input::file('photo')->isValid()) {

        $destinationPath = "assets/images/profile/";
        Input::file('photo')->move($destinationPath, "$id.jpg");
        $path = public_path("assets/images/profile/$id.jpg");
        Image::make($path)->resize(
                150, null, function ($constraint) {
            $constraint->aspectRatio();
        }
        )->save($path);
    }

    Agent::where("id", $id)->update($data);
    \Session::flash('flash_message', 'Profile Update Successfully');
    return redirect('admin/profile');
}
Jul
06
4 months ago
Activity icon

Started a new Conversation Getting Error Message Under The Image File When Uploading Image

inserted $app->bind('path.public', function() { return DIR; }); in my index file but no change

Jun
21
4 months ago
Activity icon

Started a new Conversation Hello I Want To Upload Image On My Laravel Project , So When I Submit The Request I Get Error Message Under The Image

i added in index.php $app->bind('path.public', function() { return DIR; }); but no change

Jun
15
5 months ago
Activity icon

Started a new Conversation Payment Plan Laravel

looking for a payment plan in paypall that i can easily integrate in my system consisting of basic silver golden platinum or any of the 3

Activity icon

Started a new Conversation Payment Plan

looking for a payment plan in paypall that i can easily integrate in my system consisting of basic silver golden platinum or any of the 3

Jun
13
5 months ago
Activity icon

Started a new Conversation Call To Undefined Method App\User::ratings()

public function postPost(Request $request) { request()->validate(['rate' => 'required']); $post = user::find($request->id); $rating = new \willvincent\Rateable\Rating; $rating->rating = $request->rate; $rating->user_id = auth()->user()->id; $post->ratings()->save($rating); return redirect()->route("posts"); }

Activity icon

Started a new Conversation Call To Undefined Method App\User::ratings() Trying To Submit Detail When Rating A User...getting This Error

public function postPost(Request $request) { request()->validate(['rate' => 'required']); $post = user::find($request->id); $rating = new \willvincent\Rateable\Rating; $rating->rating = $request->rate; $rating->user_id = auth()->user()->id; $post->ratings()->save($rating); return redirect()->route("posts"); }

Jun
10
5 months ago
Activity icon

Started a new Conversation ErrorException (E_NOTICE) Undefined Index: Property_id

im trying to download pdf from my system i get this error heres my code

public function generatePDF($payment_id) { $payment_details = Booking::where('id', $payment_id)->get();

    $property_name = Property::where('id', $payment_details['property_id'])->value('title');
    $room_no = Unit::where('id', $payment_details['unit_id'])->value('room_no');
    $customer_name = User::where('id', $payment_details['user_id'])->value('name');
    $agent_name = User::where('id', $payment_details['agent_id'])->value('name');
    $transaction_id = $payment_details['transaction_id'];
    $payment_mode = $payment_details['payment_mode'];
    $amount = $payment_details['amount'];
    $date= $payment_details['created_at'];

    $data = [
        'property_name' => $property_name,
        'room_no'=> $room_no,
        'customer_name'=>$customer_name,
        'agent_name'=>$agent_name,
        'transaction_id'=> $transaction_id,
        'payment_mode'=>$payment_mode,
        'amount'=>$amount,
        'date'=> $date,
    ];
    $pdf = PDF::loadView('PDF.pdf_invoice', $data);

    return $pdf->download('invoice.pdf');
}

}

Jun
08
5 months ago
Activity icon

Started a new Conversation Message Module Between 3 Users

im tryn to implement message module between admin agent and customer.....ctually im stuck after upgrading from 5.2 to 5.8... any help kindly

Jun
04
5 months ago
Activity icon

Started a new Conversation Illegal String Offset

public function index() { $id = auth()->id(); $my_invoice = MpesaPayment::where('user_id', $id)->get(); $invoices = array();

    foreach ($my_invoice as $invoice) {

// $unit = Unit::where('id', $invoice['unit_id'])->get();

        $amount = $invoice['amount'];
        $transaction_id = $invoice['mpesa_transaction_id'];
        $payment_mode = $invoice['payment_mode'];
        $room_no = Unit::where('id', $invoice['unit_id'])->value('room_no');
        $employee_id = Unit::where('id', $invoice['unit_id'])->value('employee_id');
        $property_name = Employee::where('id', $employee_id)->value('first_name');

// $agent_name = Employee::where('id', $employee_id)->value('first_name');

        $Invoices = array(
            'amount' => $amount,
            'transaction_id' => $transaction_id,
            'payment_mode' => $payment_mode,
            'room_no' => $room_no,
            'property_name' => $property_name,

        );

    }
    print_r($Invoices);

    return view('invoice.invoice')->with(array('Invoices' => $Invoices));
}
Transaction ID Payment Mode Amount Apartment Name Room No. @foreach($Invoices as $inv) {{ $inv->transaction_id }} {{ $inv['payment_mode'] }} {{ $inv['amount'] }} {{ $inv['property_name'] }} {{ $inv['room_no'] }} @endforeach
Activity icon

Started a new Conversation Illegal String Offset

//////invoice controller.php public function index() { $id = auth()->id(); $my_invoice = MpesaPayment::where('user_id', $id)->get(); $invoices = array();

    foreach ($my_invoice as $invoice) {

// $unit = Unit::where('id', $invoice['unit_id'])->get();

        $amount = $invoice['amount'];
        $transaction_id = $invoice['mpesa_transaction_id'];
        $payment_mode = $invoice['payment_mode'];
        $room_no = Unit::where('id', $invoice['unit_id'])->value('room_no');
        $employee_id = Unit::where('id', $invoice['unit_id'])->value('employee_id');
        $property_name = Employee::where('id', $employee_id)->value('first_name');

// $agent_name = Employee::where('id', $employee_id)->value('first_name');

        $Invoices = array(
            'amount' => $amount,
            'transaction_id' => $transaction_id,
            'payment_mode' => $payment_mode,
            'room_no' => $room_no,
            'property_name' => $property_name,

        );

    }
    print_r($Invoices);

    return view('invoice.invoice')->with(array('Invoices' => $Invoices));
}

/////invoice.blade.php

Transaction ID Payment Mode Amount Apartment Name Room No. @foreach($Invoices as $inv) {{ $inv->transaction_id }} {{ $inv['payment_mode'] }} {{ $inv['amount'] }} {{ $inv['property_name'] }} {{ $inv['room_no'] }} @endforeach
May
31
5 months ago
Activity icon

Started a new Conversation 5 Star Rating Laravel

how do i implement a 5 star rating .....i need customers to rate the agents on the site ..any lead ..

Activity icon

Started a new Conversation Introduce Insert Video In Laravel

i need to to introduce a insert video in my project and save it in my database....forexample the admin can be able to insert a video so that it can be viewable on the front end.any lead

May
29
5 months ago
Activity icon

Replied to User Id

@JLRDW - yes ....i already have two users in my system the admin and agent....i want to add an individual to mke it 3 users

May
28
5 months ago
Activity icon

Started a new Conversation User Id

implemented a asystem but i need to add a new user to my system....already have two acess id admin and agent ...want to add individual....any lead