samalapsy

Developer at worshipnow.com.ng

Hire Me

Experience

4,090

3 Best Reply Awards

  • Member Since 5 Months Ago
  • 1 Lesson Completed
  • 1 Favorite

15th August, 2017

samalapsy left a reply on Redirect To Dashboard • 4 days ago

I'm using the Laravel defaults

Auth::routes()

14th August, 2017

samalapsy started a new conversation Redirect To Dashboard • 5 days ago

Please how can I redirect to dashboard when logged in and I visit the registration or login url.

Thank you

12th August, 2017

samalapsy left a reply on Select All From Table And Group By Specific Column • 1 week ago

No I don't have it. This is my model

<?php

namespace App;
use App\User;
use App\Hostel;
use Mail;
use App\Mail\NewBooking;
use App\Mail\BookingSucessful;
use App\Mail\BookingFailed;
use App\Mail\Invoice;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Booking extends Model {
    
    use SoftDeletes;

    protected $fillable =['user_id', 'hostel_id', 'transaction_id', 'user_type', 'inspection_date', 'move_in_date', 'cleaning_services', 'information', 'status', 'room', 'price', 'discount_price','referral_income','referral', 'channel', 'reference' ];

    protected $dates = ['deleted_at'];

    public function user() {
        return $this->belongsTo(User::class);
    }

    public function getOwnerPhone($id) {
        $user = User::select('phone')->whereId($id)->first();
        return $user->phone;
    }

    public function getOwnerEmail($id) {
        $user = User::select('email')->whereId($id)->first($id);
        return $user->email;
    }

    public function getBookerPhone($id) {
        $user = User::select('phone')->whereId($id)->first();
        return $user->phone;
    }

    public function getBookerEmail($id) {
        $user = User::select('email')->whereId($id)->first($id);
        return $user->email;
    }

    public function getBookedHostel($id) {
        return $hostel = Hostel::find($id);
    }
    
    public function booker() {
        return  $this->belongsTo(User::class);
    }

    
    public function hostel() {
        return $this->belongsTo(Hostel::class);
    }


    public function referalIncome($refId) {
        return $refIncome= Booking::where('referral', $refId)->sum('referral_income');

    }

    public function hostelDetails($id) {
        return Hostel::find($id);
    }

    public function finalizeBooking($data){
        
    }
    
    public function successfulBookingMail($data) {
        return Mail::to($data['user_email'])->send(new BookingSucessful($data));
    }

    public function successfulBookingToOwner($data) {
        return Mail::to($data['user_email'])->send(new NewBooking($data));
    }
    

    public function failedBookingMail($data) {      
        return Mail::to($data['user_email'])->send(new BookingFailed($data));
    }


    public function successfulInvoiceMail($data) {
        return Mail::to($data['user_email'])->send(new Invoice($data));
    }

    
}

samalapsy left a reply on Select All From Table And Group By Specific Column • 1 week ago

@Snapey I've tried it it still the same error

samalapsy left a reply on Select All From Table And Group By Specific Column • 1 week ago

Someone should kindly help me out with this

Table Structure

id, room_id, user_id, transaction_id, reference, price, discount_price, referral_income, referral, status

samalapsy left a reply on Select All From Table And Group By Email • 1 week ago

@extjac Structure already added

samalapsy started a new conversation Select All From Table And Group By Email • 1 week ago

I want to select all the entries in the referrals table and them group by referral

$referrals = Booking::whereNotNull('referral')->groupBy('bookings.referral')->orderBy('referral_income', 'DESC')->get();

This is the error I got

SQLSTATE[42000]: Syntax error or access violation: 1055 'bookings.id' isn't in GROUP BY (SQL: select * from `bookings` where `referral` is not null and `bookings`.`deleted_at` is null group by `bookings`.`referral` order by `referral_income` desc)

Please note that my Referral column has been made an index on the database.

Thank you

9th August, 2017

samalapsy left a reply on Dynamic Route Prefix • 1 week ago

@modestas Nope I don't, I think an illustration would be clear enough for me

Thanks

8th August, 2017

samalapsy started a new conversation Dynamic Route Prefix • 1 week ago

I have a column that distinguish each user on the DB. Please how can I change my route prefix using a condition (i.e check if User is admin or not) and then change the prefix based on the user role?

for admin I want to have

domian.com/admin/dashboard

for user I want to have

domian.com/user/dashboard

Thanks

6th August, 2017

samalapsy left a reply on How To Write Eloquent OrderBy() To Put Null Columns To The Last • 1 week ago

This is not still sorting the code..

orderByRaw('-images_id', 'DESC')

samalapsy started a new conversation How To Write Eloquent OrderBy() To Put Null Columns To The Last • 1 week ago

Please hoe can I write an eloquent query to sort result by a column making all the null columns item appear last. Here is my code

->orderBy('images_id', 'DESC')  // This should show the ones with value first
->distinct()->Paginate(24);

31st July, 2017

samalapsy left a reply on Search With Array Multiple Parameters • 2 weeks ago

This is how my route looks like

Route::any('/filter?room={room}&budget={budget}&proximity={$proximity}&amenities={amenities}', [email protected]')->name('advanced_search');

30th July, 2017

samalapsy left a reply on Search With Array Multiple Parameters • 2 weeks ago

Thi is how my request query would look like

array:4 [
  "budget" => "5000"
  "room_type" => "Single Rooms"
  "amenities" => array:3 [
    0 => "Beds in room"
    1 => "Running Water"
    2 => "Wardrobe"
  ]
  "proximity" => "Very Close"
]

This is what I have in my url

http://localhost/prj/public/search/advanced?budget=5000&room_type=Single+Rooms&amenities%5B%5D=Beds+in+room&amenities%5B%5D=Running+Water&amenities%5B%5D=Wardrobe&proximity=Very+Close

How can I make this URL a Clean and SEO friendly one

samalapsy started a new conversation Search With Array Parameters • 2 weeks ago

I have an advanced search implementation on my website, where I have to display the selected or checked items (from a checkbox) on th url, please how can I achieve this and also how can I remove _token from the search parameters.

Thanks You

samalapsy left a reply on Validation • 2 weeks ago

@kheengz This is what I have now and it's working fine..

phone' => [
    'required',
    'numeric',
    'digits:11',
    \Illuminate\Validation\Rule::unique('users')->ignore($this->id, 'id')
]

Thanks...

samalapsy left a reply on Validation • 2 weeks ago

@kheengz This is the error it throws

Symfony\Component\Debug\Exception\FatalThrowableError: Class 'Rule' not found

This is what I have

$rules = [
            'name' => 'required|string|min:5',
            //'phone' => 'required|numeric|digits:11|unique:users, phone, '.$this->id
            //'phone' => 'required|numeric|digits:11|exists:users'
'phone' => [
    'required',
    'numeric',
    'digits:11',
    \Rule::unique('users')->ignore($this->id, 'id')
]

28th July, 2017

samalapsy left a reply on Creating Folder From A Subdomain In Laravel Into Main Domain In Laravel • 3 weeks ago

yes they are on the same physical servers

samalapsy left a reply on Creating Folder From A Subdomain In Laravel Into Main Domain In Laravel • 3 weeks ago

If I understand what you just said..It means it's not possibles....right....If yes

What about Uploading and Image from the subdomain to the main domain..is that still possible too..?

samalapsy started a new conversation Creating Folder From A Subdomain In Laravel Into Main Domain In Laravel • 3 weeks ago

I have 2 laravel files on my website, one is on a subdomain {sub.domain.com} and the other on the main domain {domain.com}.

I want to upload an image into the main public_html folder from the subdomain using Image intervention

The code below creates dynamic folder if it's not existing..

    $path = "uploads/listings/house/" . $slug;

    if(!File::exists("http://domain.com/".$path)){
            File::makeDirectory("http://domain.com/". $path, 0777, true);
            \Log::info('Driectory ' .$path. ' was created');
        }else{
            \Log::info('Driectory ' .$path. ' was NOT created');
        }

This code get the Image, add a watermark and save to the location created above

        $fileName = md5(time() .$image->getClientOriginalName()) ."." . strtolower($image->getClientOriginalExtension());
        $img = Image::make($image->getRealPath());
                
        // Main Photo
        $img->fit(1080, 620)->insert(public_path('img/logo.png'), 'center')->save($path . '/' . $fileName); 
        //Create thumbnail
        $img->fit(300, 350)->save($thumbnailPath . '/' . $fileName); 

#The Issue

Trying to Upload, I receive a log message that the folder has been createdAfter having this, I get this error

Intervention\Image\Exception\NotReadableException: Image source not readable in /home2/username/laravel/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php:339

How can I achieve this

20th July, 2017

samalapsy left a reply on Mass Assignment Using UpdateOrCreate Method • 4 weeks ago

@cronix THank You. I'll check it out.

samalapsy left a reply on Validation • 4 weeks ago

@phantanvietpk If the id = 5, it'll return a stack error saying "Column not found: 1054 unknown column phone5 "

'phone' => 'required|numeric|digits:11|exists:users'

This works locally but on server it throws a Duplicate Entry Error

samalapsy left a reply on Mass Assignment Using UpdateOrCreate Method • 4 weeks ago

@cronix can you please help me out with an Illustration?

Thanks

samalapsy left a reply on Validation • 4 weeks ago

i have a phone column on my database

19th July, 2017

samalapsy started a new conversation Validation • 1 month ago

I'm trying to force ignore the phone number validation, I tried this it's not working.

The one with comment worked locally but not working on server

$rules = [
        'name' => 'required|string|min:5',
        'phone' => 'required|numeric|digits:11|unique:users, phone, '.$this->id
        //'phone' => 'required|numeric|digits:11|exists:users'
    ];

This is what it returns on server

production.ERROR: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column ' phone' in 'where clause'

How can I go about this..?

Thanks

samalapsy started a new conversation Mass Assignment Using UpdateOrCreate Method • 1 month ago

The code below creates an existing Room attach to the house_id if not existing on the DB. I noticed that If I change an the price of an existing room, the query below would create a new row with the updated details

for($i = 0; $i < count($data['type']); $i++){           
    Room::updateOrCreate([
        'house_id' => $hostel->id,
        'user_id' => Auth::id(),
        'type' => $data['type'][$i],
        'price' => $data['price'][$i],
        'space' => $data['space'][$i]
    ]);
}

#What I want to achieve I want to always perform an update on existing rows and only Create a new row if the type is not existing in the database..

15th July, 2017

samalapsy started a new conversation Configure Laravel Domain Routing On Shared Hosting • 1 month ago

Please how can I configure subdomain DNS when using Laravel domain route on shared hosting.

     Route::domain('me.domain.com')->group(function () {
        Route::get('/', function(){
           return "Hello, Welcome to my Laravel Domain Routing. Thanks You";
        });
     }]);

Thanks in Anticipation.

13th July, 2017

samalapsy left a reply on Each Row In A Table Has A Drop-down. How To Read The Selected Value Of Each One And Do A Mass Update On Submit? • 1 month ago

Make your select element an array by changing it's name to

statusSelect[] 

Also add value attribute to you element

    <select name="statusSelect" id="statusSelect" class="form-control">
                        <option selected="selected">Approve</option>
                        <option value="Reject">Reject</option>
                    </select>

In your controller

try to dump the statusSelect request variable then you'll see an array of selected values

I Hope it helps

samalapsy started a new conversation Search On A Serilized Content In Mysql • 1 month ago

  1. I have a column of storing an array as a serialized string on my Database. Please how can I make search through my DB using the array contents of this column as a condition.
  1. Please how can I write the query below in Laravel
    SELECT * FROM table WHERE field REGEXP '.*"m9";s:[0-9]+:".Ok Then, Yes It Is.".*'

Thanks in Anticipation

13th June, 2017

samalapsy started a new conversation Show Friendly 500 Error And Also Display Database Errors Friendly • 2 months ago

Please how can I customize the laravel 500 error view and prevent my app from showing the Laravel 500 Error views when there's a database error..

Thanks in Anticipation.

samalapsy started a new conversation Use The Same Login Form For Multiple Account Login • 2 months ago

I have 2 Different Customs guards and Authentication which are

  1. Admin Guard
  2. Schools Guard

Each guard table (admin, schools) Please how can I use the same login form and url for both account types and also redirect each to them to their respective dashboard

11th June, 2017

samalapsy left a reply on Pass Value To Laravel Named Routing From Javascript • 2 months ago

@alex-greaves I'm not using vueJS...Just normal Jquery

samalapsy started a new conversation Pass Value To Laravel Named Routing From Javascript • 2 months ago

I want to add a value to my named routing from javascript

This is my route 

{{ route('admin.edit_school', ['slug' => $variable_here]) }}

This is what I tried but it's not working

var slug = $(this).data('row-abbreviation');
var url = "{{ route('admin.edit_school', ['slug' => \"+  \"]) }}";
window.location.href=url;

Please how can I achieve this..

6th June, 2017

samalapsy left a reply on Image Intervention - Image Source Not Readable • 2 months ago

Already solved it...I had to remove the

public_path()

because it's adding public to my image link.

I say a very big thank you to @fraserk for your time, effort and support.

Thanks man, Thank You Everyone.

samalapsy left a reply on Sub-domain And Main Domain Using Same Laravel Application • 2 months ago

@alexhiggins yes you're right pleae can you help me out with an example..?

samalapsy left a reply on Sub-domain And Main Domain Using Same Laravel Application • 2 months ago

Thank you @alexhiggins ... @alexhiggins and @tekmi..I want to have it in such a way the each domain and access different urls and at the same time access some specific urls. Please how can I go about that?

samalapsy left a reply on Sub-domain And Main Domain Using Same Laravel Application • 2 months ago

oH Alright then.. Thanks @tekmi

samalapsy left a reply on Sub-domain And Main Domain Using Same Laravel Application • 2 months ago

@tekmi Thanks..I've having a challenge with payment over here..Is there another way for me to get this tutorial..?

samalapsy left a reply on Image Intervention - Image Source Not Readable • 2 months ago

@fraserk I already did but still the same thing

samalapsy left a reply on Image Intervention - Image Source Not Readable • 2 months ago

@fraserk yes it is on the server

samalapsy left a reply on Image Intervention - Image Source Not Readable • 2 months ago

@fraserk yes. This line

$watermark = Image::make(public_path('img/logo.png'));

Pointing to this particulary code

public_path('img/logo.png')

samalapsy left a reply on Sub-domain And Main Domain Using Same Laravel Application • 2 months ago

@tykus..Thank you but pls is there a way to get a video tutorial link towards that..?

samalapsy started a new conversation Image Intervention - Image Source Not Readable • 2 months ago

I want to add watermark to my images but It's throwing the error "Image source not Readable". I've used it on my local host and it worked fine. Please kinldy help me check what's wrong. Thank You.

I've tried this

        $fileName = "img-".$key. "." . strtolower($image->getClientOriginalExtension());
                $img = Image::make($image->getRealPath());
                $watermark = Image::make(public_path('img/logo.png'));
                $img->insert($watermark)->save($path.'/'.$fileName);

and this

$fileName = "img-".$key. "." . strtolower($image->getClientOriginalExtension());
                $img = Image::make($image->getRealPath());
                $img->insert(public_path('img/logo.png'))->save($path.'/'.$fileName);

But all still give the same Image not readable error

samalapsy started a new conversation Sub-domain And Main Domain Using Same Laravel Application • 2 months ago

I have these domain

maindomain.xyz and sub.maindomain.xys

The above domains access the same DB just that one is client url and the other is ad admin url

Please how can I use same Laravel application for both domain on my server..

Thanks

5th June, 2017

samalapsy left a reply on Adding Watermark To Image Using Image Intervention • 2 months ago

Gotten the answer I only removed this line

 $move = $image->move($destinationPath, $fileName);

samalapsy started a new conversation Adding Watermark To Image Using Image Intervention • 2 months ago

Please how can I add watermark to my uploaded image. It's working with the code below.

$image = $request->file('banner');
$slug= "bgh-dsd";
$key=0;
$fileName = "img-".$slug."-".$key. "." . strtolower($image->getClientOriginalExtension());
                $destinationPath = $path;


                
                //Upload Images One After the Order into folder
                $img = Image::make($image->getRealPath());
                $watermark = Image::make(public_path('/img/logo.png'));                
                $img->insert($watermark, 'bottom-right', 10, 10);
                $img->save($destinationPath.'/'.$fileName);
                $move = $image->move($destinationPath, $fileName);

Thanks In Anticipation

samalapsy left a reply on Upload Multiple Images To Server Using Image Intervention • 2 months ago

I've gotten the Solution Thanks Everyone

samalapsy started a new conversation Upload Multiple Images To Server Using Image Intervention • 2 months ago

public function saveImages(Request $request)
    {

        $images = $request->file('hostel_image_files');

        
        $slug = session::get('new_hostel_slug');
        $folderName = $slug;
        $listingPath = $folderName ."/";
        $path = "uploads/listings/hostels/". $folderName ."/";

        

        //File Does not Exist
        if(!File::exists($path)) {
            File::makeDirectory($path, 0775, true);
        }

        //Add path to DB
        $hostel = Hostel::whereSlug($slug)->first();
        if (!is_null($hostel->images_id)) {
            $hostel->images_id = $listingPath;  // Path to where all listing images resides
            $hostel->save();
        }


        foreach ($images as $key => $image) {
            $rules = [
                'image' => 'required|image|mimes:jpeg,bmp,png|size:2048' //2MB Max Size
            ];

            $v = Validator::make($image, $rules);

            if ($v->fails()) {
                return redirect()->back()->withInput()->withErrors($v);
            }
            
            $fileName = $image->getClientOriginalName().getClientOriginalExtension();
            $destinationPath = $path;
            
            //Upload Images One After the Order into folder
            $img = Image::make($request->file('hostel_image_files'));
            $img->insert(public_path('img/logo.png'), 'bottom-right', 10, 10)->save($destinationPath.'/'.$fileName);
            $move = $image->move($destinationPath, $fileName);

            //Insert into DB and 
        }

        return redirect()->coute('create_hostel_step5');
    }

STACK ERROR LOG

[2017-06-05 04:57:35] local.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 1 passed to Illuminate\Validation\Factory::make() must be of the type array, object given, called in C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php on line 221 in C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Validation\Factory.php:98
Stack trace:
#0 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php(221): Illuminate\Validation\Factory->make(Object(Illuminate\Http\UploadedFile), Array)
#1 C:\xampp\htdocs\mypadi\app\Http\Controllers\HostelController.php(680): Illuminate\Support\Facades\Facade::__callStatic('make', Array)
#2 [internal function]: App\Http\Controllers\HostelController->saveStep4(Object(Illuminate\Http\Request))
#3 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Controller.php(55): call_user_func_array(Array, Array)
#4 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(44): Illuminate\Routing\Controller->callAction('saveStep4', Array)
#5 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Route.php(203): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\HostelController), 'saveStep4')
#6 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Route.php(160): Illuminate\Routing\Route->runController()
#7 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Router.php(574): Illuminate\Routing\Route->run()
#8 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#9 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Middleware\SubstituteBindings.php(41): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#10 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(148): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#11 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#12 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Auth\Middleware\Authenticate.php(43): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#13 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(148): Illuminate\Auth\Middleware\Authenticate->handle(Object(Illuminate\Http\Request), Object(Closure))
#14 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#15 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php(65): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#16 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(148): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#17 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#18 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php(49): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(148): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#20 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#21 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php(64): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#22 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(148): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#23 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#24 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php(37): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#25 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(148): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#26 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#27 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php(59): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#28 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(148): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#29 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#30 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#31 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Router.php(576): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#32 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Router.php(535): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#33 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Router.php(513): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#34 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(174): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#35 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#36 C:\xampp\htdocs\mypadi\vendor\barryvdh\laravel-debugbar\src\Middleware\Debugbar.php(51): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#37 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(148): Barryvdh\Debugbar\Middleware\Debugbar->handle(Object(Illuminate\Http\Request), Object(Closure))
#38 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#39 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php(30): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#40 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(148): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#41 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#42 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php(30): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#43 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(148): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#44 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#45 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\ValidatePostSize.php(27): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#46 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(148): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php(46): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#49 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(148): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#50 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#51 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#52 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(149): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#53 C:\xampp\htdocs\mypadi\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#54 C:\xampp\htdocs\mypadi\public\index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#55 {main}  

I have the above method to upload multiple images and add watermark on it using Image Intervention. This is the error I get while trying to save the image. Please help me out. IF there's another better and more professional and standard way to do it please help me out.

Thanks in Anticipation

3rd June, 2017

samalapsy left a reply on Updating Image(s) On A Listing Website • 2 months ago

@tekmi ImageIntervention

samalapsy left a reply on Updating Image(s) On A Listing Website • 2 months ago

@tekmi Alright Then..Thank You

samalapsy left a reply on Updating Image(s) On A Listing Website • 2 months ago

@tekmi The upload I'm talking about is to change the Image(s) that the post has...Would you think it's taking up the hosting space if I don't delete the previous images..?

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.