X-Mac

X-Mac

Member Since 1 Year Ago

Experience Points 980
Experience Level 1

4,020 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 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.

19 Feb
1 month ago

X-Mac left a reply on Route Redirect

I prefer rewrite the url. do you have some suggestion?

X-Mac started a new conversation Route Redirect

Hi there. I'm building a web app, where when a generic user is connected I retrieve the ip, analyze the Ip, set the city and show the city page. This is the idea. My problem is how retrieve the ip of the client and redirect to the city without refresh the page. I have an index page with this script

$(function(){ $.getJSON('https://ipapi.co/json/', function(data){ $.ajax({
               type:'Post',
               url:"set-location",
               type:'json',
               data:data,
               success:function(response){
                 //my problem here
               }
           });
        })
    });

data is a json with all connection info, city, country, currency.... I have a controller that analyze the json, load all info about the city and return the info.

if I use windows.location(link) will be a refresh and I don't want this. How can I solve this problem?

Thanks

15 Feb
1 month ago

X-Mac started a new conversation Use Subdomain

Hi there, I had created an app that is working under www.mysite.com, but I would separate the admin panel from the website. I would create a subdomain like admin.mysite.

I'm confusing, how to proceed. I need to creata a group route? Can I share the db of my app?

1000 thanks

03 Jan
2 months ago

X-Mac left a reply on Slug Route

@SHEZ1983 - I suspect that my idea was bad. Ok I can modify my code and add an unique id (random generated) to the a tag so my html will be Article123

I would like that when I click on the link the ulr well web mywebsite.com/article/slug

it's possible?

X-Mac left a reply on Slug Route

@realrandyallen thanks, I don't tried yet. It's working with the same slug for different articles?

X-Mac left a reply on Slug Route

I can have the same slug for different articles ;)

X-Mac started a new conversation Slug Route

Hi there, happy new year.... I don't understand how use the slug in laravel. I have a list with a href tag like Article 1 ..... I would like have the tag like < a href="article/slug">Article 1

I can create the correct link, but I can't understand how setup the route.

Thanks

18 Nov
4 months ago

X-Mac started a new conversation Select In Blade

Hi there, in my blade I populate a select box: <option value="1" {{ (($bill->payment_id == 1)? 'selected':' ' )}} >Rimessa diretta <option value ="2" {{ (($bill->payment_id == 2)? 'selected':' ' )}}>Bonifico Bancario <option value ="3" {{ (($bill->payment_id == 3)? 'selected':' ' )}} >PayPal and is working. so if I open the form I saw i.e Rimessa diretta and if I try to change value, on the screen I see the new choose but the select option is on the old value, and I would that it's change.

06 Nov
4 months ago

X-Mac left a reply on Troubleshoot Mojave

ping 127.0.0.1 PING 127.0.0.1 (127.0.0.1): 56 data bytes Request timeout for icmp_seq 0 Request timeout for icmp_seq 1 Request timeout for icmp_seq 2 Request timeout for icmp_seq 3 Request timeout for icmp_seq 4 Request timeout for icmp_seq 5 Request timeout for icmp_seq 6 Request timeout for icmp_seq 7

X-Mac left a reply on Troubleshoot Mojave

I just reintstall php, but nothing is working

X-Mac left a reply on Troubleshoot Mojave

I don't have any error, I can't connect to localhost, apachectl is running

X-Mac started a new conversation Troubleshoot Mojave

Hi there, after the last update from Apple my brew webserver is not working. I can't launch any php file. I don't know where start to fix the problem. Some one can help me?

04 Oct
5 months ago

X-Mac started a new conversation DELETE RECORD

Hi, I have 2 tables, client and ticket. The tables are linked by a foreing key. So if I try to delete a client that have a ticket I can't. On Sql it's working properly, but I can't manage on Laravel. I would catch the error and show the message error. Thanks for the help.

12 Sep
6 months ago

X-Mac started a new conversation Apache Crached

Hi, I tried to update php on my mac from 7.1.x to 7.2.x after some useless attempts, I switch on homebrew and finally I install the new php version. But on apache the version result the old, so I try to reinstall apache on mac: result now I can't navigate on localhost. Apache is running: apachectl start AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192-168-0-101.rdsnet.ro. Set the 'ServerName' directive globally to suppress this message httpd (pid 6984) already running

07 Sep
6 months ago

X-Mac left a reply on Retrieve Image From Storage

Yes 404 error, how add simbolic link without composer on server?

X-Mac left a reply on Retrieve Image From Storage

Thanks newbie360 now I can write on storage/app/public

I'm not able to retrieve the image, my code:

view

controller: $filename = 'signs/intervento_'.$intervento_id.'/sign.png';

    $image  = Storage::disk('public')->url($filename);

X-Mac left a reply on Retrieve Image From Storage

Thanks for replay newbie360, for store the image I use : $data_uri = $request->image; $encoded_image = explode(",", $data_uri)[1]; $decoded_image = base64_decode($encoded_image); $filename="signs/intervento_".$intervento_id;

    Storage::put($filename.'/sign.png', $decoded_image);

how can store in storage/publi/my_folder?

X-Mac started a new conversation Retrieve Image From Storage

Hi, I stored the image in storage /app /signs/intervento_x/sign.png

now I would retrieve the image, but my code not working Preface: I don't know how create a symbolic link on server because I don't have composer.

This is my code: view : <img class="report" src='{{url('reportIntervento.jpg')}}' style='width:760px; height: 940px'>

      </div>

Controller :

$filename = 'signs/intervento_'.$intervento_id.'/sign.png'; ..... route

Route::get('signs/{filename}', function ($filename) { $path = storage_path() . 'app/signs/' . $filename;

if(!File::exists($path)) abort(404);

$file = File::get($path);
$type = File::mimeType($path);

$response = Response::make($file, 200);
$response->header("Content-Type", $type);
return $response;

})->name('signs');

any chance to retrieve the image ?

thanks a lot

05 Sep
6 months ago

X-Mac started a new conversation Calendar Plugin

Increated an app for invoicing and techinical assistence. I need to include a calendar in my app. I'm thinking about Google Calendar, but I can't understand if GC have this feature:

  1. a separated calendar per each user of my app
  2. the calendar must be accessible from 2 users the calendar owner (the worker) and from the secretary for fix the appointment.

Some one had implements this things? Best

04 Sep
6 months ago

X-Mac left a reply on Barryvdh Error

thanks cmdobueno, I upload the entire dir vendor and now the projects is working.

X-Mac started a new conversation Barryvdh Error

Hi, I installed barryvdh plugin on my local laravel project and all works right. For install in local I used composer. I tried to move on server and I had this error: Class 'Barryvdh\DomPDF\ServiceProvider' not found in ProviderRepository.php (line 208)

On server I don't used composer, only moved the dir in vendor, and copy the config/app.php file.

Some one can help me?

01 Sep
6 months ago

X-Mac started a new conversation CREATE A PDF

Hi, I hava a pdf module (non a form) that I need to fill with some data. Because the pdf contain a lot of checkbox, I tried to create an HTML file with a convert software, the html if good, but if I try to recreate a pdf from html I had s lot of problems, maybe the html is too raw. From html to pdf I used barryvdh plugin. Other suggestions?

17 Aug
7 months ago

X-Mac left a reply on Use Union In A Query

it' s work thanks staudenmeir

X-Mac started a new conversation Report Error Page

Hi there, from yesterday on local the woops page is not working. If I had some error in my code I see only a blank page with 500 error (google). I check my config/app.php file and the setting is correct ( 'debug' => env('APP_DEBUG', true), the same for .env file. I don't update composer or laravel Some suggestion? Thanks

16 Aug
7 months ago

X-Mac started a new conversation Use Union In A Query

Hi there, I'm trying to create a query with union this are my query: $code = DB::table('articles') ->leftjoin('aliquoteiva', 'vat_id', '=', 'serial') ->where('code', 'like', '%'.$nome.'%') ->where('company_id',$company_id) ->get();

        $articles = DB::table('articles')
            ->leftjoin('aliquoteiva', 'vat_id', '=', 'serial')
             ->where('article', 'like', '%'.$nome.'%')
             ->where('company_id',$company_id)
             ->union($code)
             ->get();

but when I try to show $articles I got this error message: BadMethodCallException Method getBindings does not exist.

09 Aug
7 months ago

X-Mac left a reply on Blade View

thanks Sanpey, after I write, I remember to clear the storage. The problem was the cache.

X-Mac started a new conversation Blade View

Hi, I have my blade view that I show by a controller.

For some mysterious reason when I show the view on the server the view is'nt the same that I view in local. I checked the files on the server and are correct.

The view that I view in remote, is an old version, but I upload the new files, and they are correct.

where to check ?

Thanks for any help

18 Feb
1 year ago

X-Mac left a reply on Reset Password

Thanks guy, I update the php version and it's ok now.

17 Feb
1 year ago

X-Mac left a reply on Reset Password

this is the file /vendor/symfony/css-selector/XPath/Extension/AttributeMatchingExtension.php

X-Mac left a reply on Reset Password

I have Php 7 on my server.

X-Mac started a new conversation Reset Password

Hi again, I have my project in Laraval 5.5.34, when try to reset the password I got this error: Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_PARSE) Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE)

any idea?

11 Feb
1 year ago

X-Mac left a reply on Reset Password

Yes I have a mailtrap account amd add user and pwd in my env file

X-Mac left a reply on Reset Password

Snapey I do. My .env file is :

MAIL_DRIVER=smtp MAIL_HOST=mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=mailtrap-user MAIL_PASSWORD=mailtrap-password MAIL_ENCRYPTION=null

I also try with MAIL_HOST=smt.mailtrap.io

nothing happen

X-Mac started a new conversation Reset Password

Hi there, I'm trying to config my laravel project to send reset password link. From the form .../password/reset I can put the email, and I received the message: We have e-mailed your password reset link! But no email is sended. What I need to config else? Thanks