stef

stef

Member Since 3 Years Ago

Wesel

Experience Points 1,730
Experience Level 1

3,270 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 7
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.

06 Jun
2 weeks ago

stef left a reply on Window.onload Vue File?

Hello @sergiu17,

i created a Vue app, where i can configure a form, like a contact form, with selects, checkboxes etc... Inside the Vue app it is working, there are no problems.

Now i want to load the configured form into a div, maybe in Wordpress.

Is it possible to load a specific Vue component into a Wordpress div? So if i insert a ? Not the App.vue, for example Form.vue, which includes the ID myVueForm?

Maybe you can understand it better right now :-)

Rgds Stef

03 Jun
3 weeks ago

stef left a reply on Window.onload Vue File?

Hello @sergiu17 ,

thx for your reply, i will try. But is there a way to call a function like /controller/function ?

stef started a new conversation Window.onload Vue File?

Hello, is it possible to load a vue file with pure Javascript, on window.onload?

Rgds Stefan

14 May
1 month ago

stef left a reply on Flash Success With German Characters

@devfrey yes that did the trick, thx for your help :-)

stef left a reply on Flash Success With German Characters

ok, thx will try to do that

stef left a reply on Flash Success With German Characters

I am using phpstorm, but i found a way right now :-)

I did it like that and it is working for me:

  Flash::success(utf8_encode('Bitte überprüfen Sie Ihre Eingabe.'));

stef left a reply on Flash Success With German Characters

Nobody an idea?

03 May
1 month ago

stef left a reply on Flash Success With German Characters

Oh yes sure :-)

 Bitte �berpr�fen Sie Ihre Eingabe.

stef started a new conversation Flash Success With German Characters

Hello, i have a problem with German characters like öäüß from Controller.

Flash::success('Bitte überprüfen Sie Ihre Eingabe.');

My html doc is in utf-8

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

Thx for help

stef left a reply on Laravel You Don't Have Permission To Access / On This Server

Hello @diegoaurino,

i did it easier, i installed Plesk :-) From beginning we had problems with Froxlor, now everything is working :-)

Thx for your help and best wishes to you.

26 Apr
1 month ago

stef left a reply on Laravel You Don't Have Permission To Access / On This Server

Hello @diegoaurino

thank you for your reply, yes that could be the problem. I see that the owner is root, also the group and that is not good :-/

Do you have a tip for me to change it correctly?

Rgds

stef started a new conversation Laravel You Don't Have Permission To Access / On This Server

Hello,

i have a curious problem with laravel 5.6.

I am using froxlor, debian stretch and PHP 7.2. Also i can login into my backend and do my changes, like adding customers, upload files and so on.

So far so good :-)

BUT, after some time, 5 or 10 minutes, i get "you don't have permission to access / on this server" in Chrome. So now, when i switch to FF i can continue my work, for the next 5-10 minutes, then i switch to Safari for the next 5-10 minutes and then the system seems to be locked for 1 hour. After some time, the match is beginning from new.

I have never had such a problem and i really don't know if the problem is anything on my server or laravel. I have 2 other laravel installations, also symfony, but there i don't have these phenomenon.

Rgds and thx for help

10 Mar
3 months ago

stef left a reply on PHP Fatal Error: Require(): Failed Opening Required

I don really know, but i included the path and it is working now. I don't ask for that :-)

I included it in my php.ini, maybe it was just fortune, but it is working. Also, i removed the php.ini (only with an _php.ini) and re-include it, restart apache and now it is working.

stef left a reply on PHP Fatal Error: Require(): Failed Opening Required

Ok, i think it was a pear problem, now the public/index.php is working! But i get a:

The requested URL /login was not found on this server.

stef left a reply on PHP Fatal Error: Require(): Failed Opening Required

Yes i am using composer. When i use phpinfo(), the index is working, but when i use require or require_once, i get an 500 error.

stef left a reply on PHP Fatal Error: Require(): Failed Opening Required

I thought so too, but it isn't. I also tried these steps: https://pear.php.net/manual/en/installation.checking.php

Here i get an 500 error.

stef started a new conversation PHP Fatal Error: Require(): Failed Opening Required

Hello, i tried to install Laravel 5.6, but i get this error message:

[Sun Mar 10 11:59:48.532507 2019] [php7:error] [pid 12841] [client 178.202.30.126:56208] PHP Fatal error: require(): Failed opening required '/var/customers/webs/worksuite/support/public/bootstrap/autoload.php' (include_path='.:/usr/share/php') in /var/customers/webs/worksuite/support/public/index.php on line 22

In php.ini include_path='.:/usr/share/php' is activated

Apache 2.4 Debian 9 PHP 7.2

I also tried composer install/update --no-scripts, artisan clear cache etc.... Nothing is working for me!

Thx for help

10 Jan
5 months ago

stef left a reply on Compare And Filter Json Params On Click

Please, could you give me an example

09 Jan
5 months ago

stef left a reply on Compare And Filter Json Params On Click

One little thing :-) How can i reverse the filter, if i click on an ID with empty rules or 0.

So when i click on ID 4 that i can display 2,3,5 again?

stef left a reply on Compare And Filter Json Params On Click

Perfect! Thank you so much :-)

stef left a reply on Compare And Filter Json Params On Click

Ahhhh yes thank you! That did the trick :-) BUT what if i have a rules array? Like this:

products:[ {"id": 1, "title": "iPad 4 Mini", "price": 500.01, "inventory": 2, "rules": [2,3,5]}, {"id": 2, "title": "H&M T-Shirt White", "price": 10.99, "inventory": 10,"rules": 0}, {"id": 3, "title": "Chafvddvgrli XCX - Sucker CD", "price": 19.99, "inventory": 5,"rules": 0}, {"id": 4, "title": "Charlirtgrtg XCX - Sucker CD", "price": 19.99, "inventory": 5,"rules": 0}, {"id": 5, "title": "Charrtgrtgrthzzli XCX - Sucker CD", "price": 19.99, "inventory": 5,"rules": 0} ]

So when i click on id 1, hide ID 2,3,5 ? Do i have to implement another filter?

stef left a reply on Compare And Filter Json Params On Click

When i click on button with ID 1, each ID is going to be hidden, not ID 2. Also when i click on button with ID 2 or 3.

But i want, when i click on ID 1 that only ID 2 should be hidden, because of comparing ID 1 with rules 1(in ID 2).

08 Jan
5 months ago

stef started a new conversation Compare And Filter Json Params On Click

Hello, i am new to vue and i have a question.

How can i compare json params and filter them?

When i click on ID 1, then compare ID with rules and if it is true, filter them, otherwise not.

Here is my code:

VueTest

            <h3>{{product.title}}</h3>
            <button class="btn btn-md btn-primary" @click="removeChild(product)">{{product.rules}}</button>
        </div>


    </div>
</div>
new Vue({

    el:"#app",
    name:"App",
    data:{

        products:[
            {"id": 1, "title": "iPad 4 Mini", "price": 500.01, "inventory": 2, "rules":0},
            {"id": 2, "title": "H&M T-Shirt White", "price": 10.99, "inventory": 10,"rules":1},
            {"id": 3, "title": "Charli XCX - Sucker CD", "price": 19.99, "inventory": 5,"rules":0}
        ]

    },
    methods:{

        removeChild: function (product){
            return this.products = this.products.filter(product => product.id === product.rules);
        }

    }

});

Thx for your help :-)

15 Sep
1 year ago

stef left a reply on Laravel 5 And Angular 4 Security

Hello @blair2004, thx for your reply, i will du that :-)

stef started a new conversation Laravel 5 And Angular 4 Security

Hello,

i want to setup a A4 frontend with a L5 backend. Now i am at the point of XSS security.

My question is, how secure is A4 or do i have to build up the security into L5 backend?

I know that there are some methods to protect A4, but isn't the code open? https://angular.io/guide/security

Thx for your infos :-)

Rgds Stefan

11 Aug
2 years ago

stef left a reply on Insert/update/delete Multiple Tables

Hello simondavis,

thx for the fast reply.

At the moment i have no relationship, here is the beginning of my problem :-) Can i solve this with https://laravel.com/docs/5.2/eloquent-relationships#has-many-through ?

stef started a new conversation Insert/update/delete Multiple Tables

Hello,

i am new to laravel and have a question about database relationships.

I have 4 tables users, employees, products and papers. How can i insert/update/delete this tables? What is the best way?

users: id, name, street employees: id, fk_user, name, email products: id, fk_user, size, color papers: id, fk_user, job, bank

Rgds :-)

08 Aug
2 years ago

stef left a reply on Load Mysql Data Into Modal Form With Ajax

Hi again,

thx @ajaygupta and also @simondavies.

I decided to use ajaygupta solution, it is working fantastic.

Rgds

Stefan

06 Aug
2 years ago

stef left a reply on Load Mysql Data Into Modal Form With Ajax

Hi,

thx for your reply, i will take a look to both :-)

Rgds

Stefan

stef started a new conversation Load Mysql Data Into Modal Form With Ajax

Hi,

what is the best way to load sql data into a bootstrap modal form, to edit user informations?

Rgds

Stefan

07 Jul
2 years ago

stef started a new conversation Laravel Excel Create Table And Insert Data

Hi @all,

i am using this Laravel plugin http://www.maatwebsite.nl/laravel-excel/docs/import to insert data into a database.

How can i check if a table exists and if not how to create?

Excel::load(Input::file('file'), function ($reader) {
     $reader->each(function($sheet) {    
         foreach ($sheet->toArray() as $row) {
            User::firstOrCreate($row);
         }
     });
});

Thx again

03 Jul
2 years ago
02 Jul
2 years ago

stef left a reply on Laravel 5.2 JQuery Ajax Token 500 Error

@tomo_pongrac No sorry, it is not working.

I think the problem is much earlier and depends on the token in jquery.

stef left a reply on Laravel 5.2 JQuery Ajax Token 500 Error

@tomo_pongrac

Yes, same problem.

Difficult :-)

stef left a reply on Laravel 5.2 JQuery Ajax Token 500 Error

@tomo_pongrac yes i know :-)

i get only this:

status code 500 internal server error

And here are the tokens:

XSRF-TOKEN=eyJpdiI6IlA4SnZqSVFCRmU0OWVUTkFIalkzdFE9PSIsInZhbHVlIjoiRUpDTXZ4SnZCSGZsc0J3b1F1M3ZpYUx5UHh2Vm5OTjdVZ3YrcHZwallZalwvS1E0U2hGMDIzYmJ3eTdhM1lxandpZVBiR0JyWEl6dkdRRFFsN0ZuK2lBPT0iLCJtYWMiOiI1NDA0NzUyYzJkMDlmMDQ3YjdkZmEwMTBjNjQxYmFiOGEwOTE0MGJmOTBmNDQ1Y2Y0OTNiZTc2YjhjMzJlNjc4In0%3D; 
laravel_session=eyJpdiI6IkJHcjFIN1RHZ3JBVmI3V2M1UFwvU1lBPT0iLCJ2YWx1ZSI6IjB2VU8yWTdcLzNSZEZxaEo4bzhKRDZkZE9NRHUyelZcL094ME5HT2lTc0hWTUxyVGErZ2pQWDFwdnFWbE5JZVBJRGx3OFg0WVlFNENGcEcwSnpZXC9MQXhRPT0iLCJtYWMiOiJmZGI0YTlhZWM5OGU5NmJkNjNiYWRmZTc2MjU1YjNlYjAzNWJhMzI0MmFhYTcwNmYwYzBkMDk0MmYzMzJjYmQwIn0%3D

stef left a reply on Laravel 5.2 JQuery Ajax Token 500 Error

Hi @tomo_pongrac ,

no that was not the problem :-(

This is my url, maybe it helps: http://localhost:8001/fletcher/public/executeSearch

stef started a new conversation Laravel 5.2 JQuery Ajax Token 500 Error

Hello @all,

i have got a little problen and don't find any solution at google. The example is from here: https://www.youtube.com/watch?v=WdZsN5QiQ_Q

This is my :

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="{{ URL::to('js/custom.js') }}"></script>```


My jQuery custom.js:

``` $("#formSearch input").on("click",function(e){
        $.ajaxSetup({
            headers: {
                'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content')
            }
        })
    e.preventDefault(); 
    var keywords = $(this).attr('id');
    if (keywords) {
        $.post("executeSearch",{keywords:keywords},function(markup){
                $("#counter").html(markup);
        });
    }
    else{
            alert(keywords);    }
 });```

My routes:

```Route::get('/',function(){
    return View::make("pages.index.index");
});
Route::post('executeSearch/',array("uses","[email protected]"));```

And my Controller:

```namespace App\Http\Controllers;

use DB;
use App\Http\Controllers\Controller;


class SearchController extends Controller{


    public function executeSearch(){ 

        $keywords = Input::get("keywords");

        $daten = Daten::all();
        $searchDaten = new \Illuminate\Database\Eloquent\Collection();

        foreach ($daten as $date) {
            if(Str::contains(Str::lower($date->name),Str::lower($keywords)))
        }
    $searchDaten->add($date);

        return View::make('searchedDaten')->with("searchDaten",$searchDaten);
    }

}```


Thx :-)
19 Jun
3 years ago

stef left a reply on Send Contact Form.

Hello,

i got it :-) After 1 week :-/

I think the problem is the mailserver, but i still don't know where the problem comes from.

I changed to my other shared hoster and it works now.

My settings, maybe it helps:

MAIL_DRIVER=mail MAIL_HOST=smtp.strato.de MAIL_PORT=465 MAIL_USERNAME=MYUSERNAME MAIL_PASSWORD=MYPASSWORD MAIL_ENCRYPTION=tls

Thx

17 Jun
3 years ago

stef left a reply on Send Contact Form.

Hello everybody,

i changed the driver from smtp to mail.

Now the email is sent, but i have not received any in outlook or in my hoster mail account.

What could be the problem now?

Rgds

16 Jun
3 years ago

stef left a reply on Send Contact Form.

Hello again :-)

now i have got a problem. My hoster said, that they can't help me, because this is not their support.

I tried my access data also with phpmailer in another app, there it is also not working, but i got a request that the email was sent -> i have never received any emails.

In outlook my access data are working, where could be the problem?

Mailgun can't be configurate, because there is no CNAME .

Please need help :-(

14 Jun
3 years ago

stef left a reply on Send Contact Form.

i will try with mailgun, don't find the problem.

Thank you for your help :-)

stef left a reply on Send Contact Form.

Next message:

Connection could not be established with host smtp.strato.de [ #0]

stef left a reply on Send Contact Form.

I set my data in .env, in outlook it works with the access data

MAIL_DRIVER=smtp MAIL_HOST=smtp.strato.de MAIL_PORT=465 MAIL_USERNAME=USERNAME MAIL_PASSWORD=PASSWORD MAIL_ENCRYPTION=tls

stef left a reply on Send Contact Form.

No sorry :-(

I get this message:

Connection to tcp://smtp.strato.de:465 Timed Out

stef left a reply on Send Contact Form.

Here we go @tomo_pongrac,

i must say, that i am totally new to laravel

<?php

namespace App\Http\Controllers;

use Mail;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;


class KontaktController extends Controller{


    public function index(){

        return view('pages.kontakt.index');
    }


    public function submit(Request $request){

        \Mail::send('pages.kontakt.index',
            array(
                'vorname' => $request->get('vorname'),
                'nachname' => $request->get('nachname'),
                'email' => $request->get('email'),
                'telefon' => $request->get('telefon'),
                'nachricht' => $request->get('nachricht')
            ), function($message)
            {
                $message->from('[email protected]');
                $message->to('[email protected]', 'Admin')->subject('TODOParrot Feedback');
            });

        return \Redirect::route('kontakt')->with('message', 'Thanks for contacting us!');
    }
}

stef left a reply on Send Contact Form.

Hello SimplyCorey,

no i am using Swiftmail.

I tried with mailgun, but don't know how to configure my server.

At step 1 Add DNS Records For Sending, i have 2 TXT values, but on my server there is just 1 input field. Which one should i use?

Also Add DNS Records For Tracking, i have no field.

Maybe i will contact strato.de, that is may hoster and will ask them.

Thx to all :-)

13 Jun
3 years ago

stef left a reply on Send Contact Form.

Hello again,

i think i am very close. I get this message:

FatalErrorException in StreamBuffer.php line 163: Maximum execution time of 30 seconds exceeded

I set my access data in .env and config/mail.php. The data are totally correct, because i tried them with phpmailer.

But i must said, that i am using xampp with PHP 7, could this be the problem, that i am sending from localhost?

Rgds

stef left a reply on Send Contact Form.

Thx for your very fast reply.

I will try both :-)

stef started a new conversation Send Contact Form.

Hello,

i created a contact form, so far so good, but now i want to send it and i don't know how.

Do i need Mandrill, SES etc to send an email? Or do i just need my mailserver data?

It confuses me a little bit, because in past i just use phpmailer.

Thx for reply

28 Jul
3 years ago

stef left a reply on Laravel 5.1 On Shared Hosting Not Working

Hi what's up here :-))))

i have still the problem and my head burns.

Iam thinking about forge.laravel, has anyone experience with it?

Rgds

Stef