• maiweb v0.1.0
  • ★
  • Feedback

DevMarketer

active · last success 2026-06-18 22:41

Visit site ↗ · Feed ↗

  • DevMarketer youtube.com channel retired video youtube 2019-02-15 16:46
    ↗

    Have you ever wanted to use an iOS style switch on your website and reached for a package or framework in order to do it? You don’t need any frameworks to build this, and today I am going to show you how you can build an iOS style switch from scratch using only HTML, CSS, and...

    ▶ Watch on YouTube Opens in a new tab
    Have you ever wanted to use an iOS style switch on your website and reached for a package or framework in order to do it? You don’t need any frameworks to build this, and today I am going to show you how you can build an iOS style switch from scratch using only HTML, CSS, and vanilla Javascript. We will code this project up in Codepen, which makes it easy to follow along and experiment with our project. ===== SOURCE CODE ===== The Full Source Code (CodePen Project): https://codepen.io/jacurtis/pen/EGOgqY You can fork the project within codepen if you are interested in playing around with this more. There is 1 significant difference between this project and the one in the video and that is that the project linked above is ==== FOLLOW ME ==== Subscribe for New Releases! Subscribe to DevMarketer Insider https://confirmsubscription.com/h/d/5EDC91CF554832D1 Twitter - http://twitter.com/_jacurtis (ask me questions!) ==== QUESTIONS? ==== Leave a comment below and I or someone else can help you. For quick questions you may also want to ask me on Twitter, I respond almost immediately. Email me hello@jacurtis.com Thanks for all your support! #css #js #html #no-frameworks #tutorial
  • DevMarketer youtube.com channel retired video youtube 2019-02-12 18:23
    ↗

    In our previous video, we talked about setting up the laravel-websockets package to run our own websocket server. This video will focus on the settings you can configure when setting up your websocket server. For those interested in learning how to use this package, watch my...

    ▶ Watch on YouTube Opens in a new tab
    In our previous video, we talked about setting up the laravel-websockets package to run our own websocket server. This video will focus on the settings you can configure when setting up your websocket server. For those interested in learning how to use this package, watch my previous video which covers the setup and use of this package to get running with Laravel Websockets and Laravel Echo. Watch the Previous Video Here: https://youtu.be/pIGy7-7gGXI ==== WATCH THE FULL SERIES ==== Learn Laravel Echo and Laravel Websockets in Detail with my Full (FREE) Course: https://www.youtube.com/playlist?list=PLwAKR305CRO9rlj-U9oOi4m2sQaWN6XA8 ==== FOLLOW ME ==== Subscribe for New Releases! Click the Bell Icon to Be the First to Watch new Videos. Subscribe to DevMarketer Insider https://confirmsubscription.com/h/d/5EDC91CF554832D1 Twitter - http://twitter.com/_jacurtis (ask me questions!) ==== QUESTIONS? ==== Leave a comment below and I or someone else can help you. For quick questions you may also want to ask me on Twitter, I respond almost immediately. Email me hello@jacurtis.com Thanks for all your support!
  • DevMarketer youtube.com channel retired video youtube 2019-02-12 17:46
    ↗

    Have you ever wanted to use Websockets without using an external service like Pusher? In this video I will show you how you finally can leverage the power of websockets in Laravel without any external services. We will use Laravel Echo to work with the sockets on the frontend...

    ▶ Watch on YouTube Opens in a new tab
    Have you ever wanted to use Websockets without using an external service like Pusher? In this video I will show you how you finally can leverage the power of websockets in Laravel without any external services. We will use Laravel Echo to work with the sockets on the frontend and Laravel events to trigger events on the server side. The method we will use to operate our Websockets today is a package called laravel-websockets. This package actually imports an instance of Ratchet, a low-level web sockets server, into our Laravel project to allow us to host a websocket server as part of an existing Laravel application. This is convenient because everything is self-contained in one Laravel application. You can run this web socket server inside the Laravel app that requires web sockets, or you can choose to host a standalone application that runs this package for your own self-hosted websocket platform. It can support multiple clients just like other popular websocket services. This package scales well, with over 15,000 concurrent connections maintained using just a simple 512Mb ram VPS server that usually costs around $5 a month. ▼ ▼ ▼ LINKS ▼ ▼ ▼ Next (Optional): Configuring Laravel-Websockets - Understanding the settings: https://youtu.be/V4Nqog5eXuQ Learn Websockets in Detail with My Full (FREE) Course on YouTube: https://www.youtube.com/playlist?list=PLwAKR305CRO9rlj-U9oOi4m2sQaWN6XA8 Laravel-Websockets Package: https://github.com/beyondcode/laravel-websockets Laravel-Websockets Documentation: https://docs.beyondco.de/laravel-websockets/ Installation Snippets: https://docs.beyondco.de/laravel-websockets/1.0/getting-started/installation.html Does This Package Scale?: https://docs.beyondco.de/laravel-websockets/1.0/faq/scaling.html ▼ ▼ ▼ CODE SNIPPETS ▼ ▼ ▼ This was a straightforward setup tutorial, so no GitHub repo is provided. To install in an existing Laravel app 1) Install via composer: composer require beyondcode/laravel-websockets 2) Publish migration files: php artisan vendor:publish —provider=“BeyondCode\LaravelWebSockets\WebSocketsServiceProvider” —tag=“migrations” 3) Publish Configuration Files: php artisan vendor:publish —provider=“BeyondCode\LaravelWebSockets\WebSocketsServiceProvider” —tag=“config” 4) Run Migrations: php artisan migrate To start your web socket server run: php artisan websockets:serve ==== FOLLOW ME ==== Subscribe for New Releases! Subscribe to DevMarketer Insider https://confirmsubscription.com/h/d/5EDC91CF554832D1 Twitter - http://twitter.com/_jacurtis (ask me questions!) ==== QUESTIONS? ==== Leave a comment below and I or someone else can help you. For quick questions you may also want to ask me on Twitter, I respond almost immediately. Email me hello@jacurtis.com Thanks for all your support!
  • DevMarketer youtube.com channel retired video youtube 2018-08-16 17:23
    ↗

    Ever wanted to create multiple staging servers for your Laravel project but not know how to set it up? In today's video we answer a common subscriber question I get about how this works, so that you can maintain different Larave projects with different subdomains. This is for...

    ▶ Watch on YouTube Opens in a new tab
    Ever wanted to create multiple staging servers for your Laravel project but not know how to set it up? In today's video we answer a common subscriber question I get about how this works, so that you can maintain different Larave projects with different subdomains. This is for staging subdomains, not multi-tenant subdomains. So a common workflow is to have staging.mysite.com and beta.mysite.com and then mysite.com as the live website. This allows you to push different code to each codebase without the sites interfering with each other. ==== MORE FROM THIS SERIES ==== ==== DOWNLOAD SOURCE CODE ==== Download Code from this Episode: https://github.com/DevMarketer/DevMarketer/releases/tag/ep_13 ==== FOLLOW ME ==== Subscribe for New Releases! Subscribe to DevMarketer Insider https://confirmsubscription.com/h/d/5EDC91CF554832D1 Twitter - http://twitter.com/_jacurtis (ask me questions!) ==== QUESTIONS? ==== Leave a comment below and I or someone else can help you. For quick questions you may also want to ask me on Twitter, I respond almost immediately. Email me hello@jacurtis.com Thanks for all your support!
  • DevMarketer youtube.com channel retired video youtube 2018-03-10 22:12
    ↗

    Up to this point we have always worked with public channels in Laravel Echo. Public channels can be useful for websites with public facing frontends and with notifications like comments that don't provide sensitive or private information. So what do you do when your channels...

    ▶ Watch on YouTube Opens in a new tab
    Up to this point we have always worked with public channels in Laravel Echo. Public channels can be useful for websites with public facing frontends and with notifications like comments that don't provide sensitive or private information. So what do you do when your channels are distributing information that is only intended for certain users (like admins or managers) or the author of a blog post, or the information being sent is more sensitive? Well that is when we use private channels, which require users to authenticate in order to subscribe to a channel. There are three basic steps needed to convert a channel from a public channel to a private one: 1. In your App\Events file we need to change return new Channel('post') to return new PrivateChannel('post') inside the broadcastOn() method. 2. On the client side (which for us is on the posts.show blade file) we need to tell laravel echo that we are subscribing to a private channel now. This means changing Echo.channel() to Echo.private(). Everything else can stay the same. 3. Lastly, in our routes/channels.php file we can define our private channel with authentication rules by ensuring that the function returns true or false to determine the user's eligibility for that private channel. Next Up: Working with Presence Channels ==== MORE FROM THIS SERIES . ==== Full Playlist for the "Mastering Websockets in Laravel" Series: https://www.youtube.com/playlist?list=PLwAKR305CRO9rlj-U9oOi4m2sQaWN6XA8 ==== WRITTEN TUTORIALS ==== "Mastering Websockets in Laravel" Master Series Page: https://devmarketer.io/learn/laravel-echo-tutorial-websockets/ ==== DOWNLOAD SOURCE CODE ==== Github Code Repo for this Series: https://github.com/DevMarketer/Laravel_Echo_Tutorial Download Source Code for Part 4: https://github.com/DevMarketer/Laravel_Echo_Tutorial/releases/tag/Part4 ==== FOLLOW ME ==== Subscribe for New Releases! Subscribe to DevMarketer Insider (Email) https://confirmsubscription.com/h/d/5EDC91CF554832D1 Twitter - http://twitter.com/_jacurtis (ask me questions!) ==== QUESTIONS? ==== Leave a comment below and I or someone else can help you. For quick questions you may also want to ask me on Twitter, I respond almost immediately. Email me hello@jacurtis.com Thanks for all your support!
  • DevMarketer youtube.com channel retired video youtube 2018-02-13 19:13
    ↗

    It is finally time to connect to our socket server and start serving broadcasting events to our users. In this tutorial part, we will be creating our event, which we will trigger server-side when we hit the new comment API point that we created in the last video. As soon as...

    ▶ Watch on YouTube Opens in a new tab
    It is finally time to connect to our socket server and start serving broadcasting events to our users. In this tutorial part, we will be creating our event, which we will trigger server-side when we hit the new comment API point that we created in the last video. As soon as we submit a new comment to that API endpoint, we will trigger the event after it saves, and pass the new comment's details to the socket server. On the server side we can just use the basic Laravel event/listener system, except that we won't bother ourselves with listeners. Listeners can still be used to run scripts server-side when an event is triggered, but our primary concern is to trigger events and then broadcast those events, which will be sent to our socket server on Pusher.com. On the client-side we will use Laravel Echo to subscribe to channels when the page loads. This will prepare our clients to accept any new events that come down the tube while we are subscribed. Then we will tell Laravel Echo what to do when we hear the NewComment event, and use Vue.js to update the newest comment into our comments array, so that it is automatically displayed in the comments feed. In the end we will have a powerful live commenting realtime engine. It will be a great example of what can be done with websockets and Laravel echo! Next Up: We learn about how to use Private Channels to only allow authenticated users access to the channels. ==== WRITTEN TUTORIALS ==== "Mastering Websockets in Laravel" Master Series Page: https://devmarketer.io/learn/laravel-echo-tutorial-websockets/ Part 3: Handling Socket Server Events Coming Soon ==== MORE FROM THIS SERIES . ==== Full Playlist for the "Mastering Websockets in Laravel" Series: https://www.youtube.com/playlist?list=PLwAKR305CRO9rlj-U9oOi4m2sQaWN6XA8 ==== DOWNLOAD SOURCE CODE ==== Github Code Repo for this Series: https://github.com/DevMarketer/Laravel_Echo_Tutorial Download Code for Part3 https://github.com/DevMarketer/Laravel_Echo_Tutorial/releases/tag/Part3 ==== FOLLOW ME ==== Subscribe for New Releases! Subscribe to DevMarketer Insider (Email) https://confirmsubscription.com/h/d/5EDC91CF554832D1 Twitter - http://twitter.com/_jacurtis (ask me questions!) ==== QUESTIONS? ==== Leave a comment below and I or someone else can help you. For quick questions you may also want to ask me on Twitter, I respond almost immediately. Email me hello@jacurtis.com Thanks for all your support!
  • DevMarketer youtube.com channel retired video youtube 2018-02-13 19:11
    ↗

    We are all anxious to get writing some code to interact with websockets, but first we need to build the foundation of code necessary to start submitting and displaying comments to our users. Once we have this part setup, then we can easily add websockets to it to enhance the...

    ▶ Watch on YouTube Opens in a new tab
    We are all anxious to get writing some code to interact with websockets, but first we need to build the foundation of code necessary to start submitting and displaying comments to our users. Once we have this part setup, then we can easily add websockets to it to enhance the experience even more. This episode will create a small API for us to interact with and will create some structure to save our comments. First we need to create a database migration to store our comments. This will require creating a migration, a model, and a controller for our comments. We will make 2 API endpoints for our comments. The first is to display all comments for a specific post. The second endpoint will allow us to save a new comment via the API. Then its time to use this API by setting up our frontend. We will create two Vue.js methods to handle this. The first is getComments() which gets all the comments for the current post, and the second is postComments() which will post a new comment for the current post. Next up: We actually connect websockets to display new comments onto the page as they are submitted live! ==== WRITTEN TUTORIALS ==== "Mastering Websockets in Laravel" Master Series Page: https://devmarketer.io/learn/laravel-echo-tutorial-websockets/ Part 2: Setting Up Comments AJAX (Written Tutorial) https://devmarketer.io/learn/websockets-laravel-part-2-creating-comments-ajax ==== MORE FROM THIS SERIES . ==== Full Playlist for the "Mastering Websockets in Laravel" Series: https://www.youtube.com/playlist?list=PLwAKR305CRO9rlj-U9oOi4m2sQaWN6XA8 ==== DOWNLOAD SOURCE CODE ==== Github Code Repo for this Series: https://github.com/DevMarketer/Laravel_Echo_Tutorial Download Source Code for this Episode: https://github.com/DevMarketer/Laravel_Echo_Tutorial/releases/tag/Part2 ==== FOLLOW ME ==== Subscribe for New Releases! Subscribe to DevMarketer Insider (Email) https://confirmsubscription.com/h/d/5EDC91CF554832D1 Twitter - http://twitter.com/_jacurtis (ask me questions!) ==== QUESTIONS? ==== Leave a comment below and I or someone else can help you. For quick questions you may also want to ask me on Twitter, I respond almost immediately. Email me hello@jacurtis.com Thanks for all your support!
  • DevMarketer youtube.com channel retired video youtube 2018-02-13 19:10
    ↗

    The goal today is to clone our repository for the demo project so you can easily follow along throughout this series on Laravel Echo. Once we setup the demo project we will also explore how to configure a laravel project to get it ready to start using websockets and Laravel...

    ▶ Watch on YouTube Opens in a new tab
    The goal today is to clone our repository for the demo project so you can easily follow along throughout this series on Laravel Echo. Once we setup the demo project we will also explore how to configure a laravel project to get it ready to start using websockets and Laravel echo. Skip to 11:31 if you are not interested in the demo project setup. This will show you which packages to install, and what configuration is needed in our javascript files, service providers, etc to prepare the application to broadcast events. Throughout this tutorial series we will be using Pusher.com to get started with Websockets. There are many other platforms and services out there that work similar and you are more than welcome to give them a try. I selected Pusher for the tutorial because it is very easy to use and has an awesome "developer console" that lets you actually see what events are coming through the socket server. This makes development and learning easier. Plus it has a generous free tier, meaning you can learn how to use websockets without needing to pay anything or be at risk of paying anything. ==== WRITTEN TUTORIALS ==== "Mastering Websockets in Laravel" Master Series Page: https://devmarketer.io/learn/laravel-echo-tutorial-websockets/ Part 1: Configuring Laravel For Websockets (Written Tutorial) https://devmarketer.io/learn/part-1-setting-up-our-laravel-echo-project ==== MORE FROM THIS SERIES . ==== Full Playlist for the "Mastering Websockets in Laravel" Series: https://www.youtube.com/playlist?list=PLwAKR305CRO9rlj-U9oOi4m2sQaWN6XA8 ==== DOWNLOAD SOURCE CODE ==== Code for Project Start Phase: https://github.com/DevMarketer/Laravel_Echo_Tutorial/releases/tag/start Github Code Repo for this Series: https://github.com/DevMarketer/Laravel_Echo_Tutorial ==== FOLLOW ME ==== Subscribe for New Releases! Subscribe to DevMarketer Insider (Email) https://confirmsubscription.com/h/d/5EDC91CF554832D1 Twitter - http://twitter.com/_jacurtis (ask me questions!) ==== QUESTIONS? ==== Leave a comment below and I or someone else can help you. For quick questions you may also want to ask me on Twitter, I respond almost immediately. Email me hello@jacurtis.com Thanks for all your support!
  • DevMarketer youtube.com channel retired video youtube 2018-02-13 19:08
    ↗

    Before we can master websockets, its important that we first understand them and the terminology that surrounds them. You will encounter lots of funny words while you study websockets and read documentation about them. So the goal of this video is to make sure that we cover...

    ▶ Watch on YouTube Opens in a new tab
    Before we can master websockets, its important that we first understand them and the terminology that surrounds them. You will encounter lots of funny words while you study websockets and read documentation about them. So the goal of this video is to make sure that we cover what these terms mean and also all of the parts that are at play when we work with websockets. There are three main components with websockets: your web server, the socket server, and the client-side browser. The web server is what runs your normal server-side framework. This program generally has an event system, that when triggered will send an API or webhook (POST) request over to your socket server. This lets the socket server know that an event occurred and the information that pertains to it. The web server will pass important information over to the socket server as part of the request like the information about the event. For example if we want to notify the socket server of a "New Transaction" event, we might also pass in the transaction details like the transaction amount or transaction id. The socket server's job is to manage connections and to distribute events. Clients will connect to the socket server via channels. These channels are segregated groups that allow us to keep events localized only on channels that apply to the event. The socket server keeps track of who is subscribed to certain channels and who unsubscribes, and which clients might lose connection. This way, when the socket server receives a new event from the web server it knows who it should send the event information to, based on who is connected to the various channels. The socket server will then distribute the event to any clients subscribed at the time, to an appropriate channel for that event. The socket server itself doesn't update the information on a client's browser window. We will use Laravel Echo or another client side library (such as the pusher-js library) to listen for events on the channel and do something when an event occurs. At this point we can write any standard javascript function or use a javascript function to handle the triggering of an event. We can also grab this payload and use that information to display something on screen to the user. All of this happens in real time and this power enables us to create wonderful experiences for our users. ==== DOWNLOAD SLIDES ==== ==== WRITTEN TUTORIALS ==== "Mastering Websockets in Laravel" Master Series Page: https://devmarketer.io/learn/laravel-echo-tutorial-websockets/ Part 0: What are Websockets? ==== MORE FROM THIS SERIES . ==== Full Playlist for the "Mastering Websockets in Laravel" Series: https://www.youtube.com/playlist?list=PLwAKR305CRO9rlj-U9oOi4m2sQaWN6XA8 ==== DOWNLOAD SOURCE CODE ==== Github Code Repo for this Series: https://github.com/DevMarketer/Laravel_Echo_Tutorial ==== FOLLOW ME ==== Subscribe for New Releases! Subscribe to DevMarketer Insider (Email) https://confirmsubscription.com/h/d/5EDC91CF554832D1 Twitter - http://twitter.com/_jacurtis (ask me questions!) ==== QUESTIONS? ==== Leave a comment below and I or someone else can help you. For quick questions you may also want to ask me on Twitter, I respond almost immediately. Email me hello@jacurtis.com Thanks for all your support!
  • DevMarketer youtube.com channel retired video youtube 2018-02-13 19:08
    ↗

    You guys voted on this new series, we are learning websockets in Laravel with Laravel Echo now. This series will grow with more videos to help you master the knowledge of websockets in Laravel. Websockets allow us to create incredible user experiences (UX) by enhancing...

    ▶ Watch on YouTube Opens in a new tab
    You guys voted on this new series, we are learning websockets in Laravel with Laravel Echo now. This series will grow with more videos to help you master the knowledge of websockets in Laravel. Websockets allow us to create incredible user experiences (UX) by enhancing websockets with realtime live updates from our socket server. This series will assume a basic knowledge of PHP and Laravel. But we will still take the time to make sure you understand websockets by the end of it. Throughout the course our goal will be to build a realtime live commenting feature for a blog. I will provide all the code necessary to do that. ==== WRITTEN TUTORIALS ==== "Mastering Websockets in Laravel" Master Series Page: https://devmarketer.io/learn/laravel-echo-tutorial-websockets/ ==== MORE FROM THIS SERIES . ==== Full Playlist for the "Mastering Websockets in Laravel" Series: https://www.youtube.com/playlist?list=PLwAKR305CRO9rlj-U9oOi4m2sQaWN6XA8 ==== DOWNLOAD SOURCE CODE ==== Github Code Repo for this Series: https://github.com/DevMarketer/Laravel_Echo_Tutorial ==== FOLLOW ME ==== Subscribe for New Releases! Subscribe to DevMarketer Insider (Email) https://confirmsubscription.com/h/d/5EDC91CF554832D1 Twitter - http://twitter.com/_jacurtis (ask me questions!) ==== QUESTIONS? ==== Leave a comment below and I or someone else can help you. For quick questions you may also want to ask me on Twitter, I respond almost immediately. Email me hello@jacurtis.com Thanks for all your support!
  • DevMarketer youtube.com channel retired video youtube 2017-11-20 15:00
    ↗

    In this video we add the LaraFlash package to more easily manage our flash notifications. This powerful plugin allows us to easily add flash notifications to our Laravel app, including attaching additional information like priority, message type (success, info, danger,...

    ▶ Watch on YouTube Opens in a new tab
    In this video we add the LaraFlash package to more easily manage our flash notifications. This powerful plugin allows us to easily add flash notifications to our Laravel app, including attaching additional information like priority, message type (success, info, danger, warning, snackbar, etc), and titles. You can add as many LaraFlash notifications to the same request as you want and they will all be available to use in the view. There are even powerful methods to sort the messages by priority or type. Once LaraFlash is set up, then we set up our javascript notifications through Vue. We will do this by creating a new Notifications Vue.js object to manage all our notifications and set up the "mount" method to run all our LaraFlash notifications upon load. Once all the notifications run, we can also trigger custom client-side notifications at any time by calling the notification methods such as .toast(), .success() and so forth. At the end, we tie into the "copied" event that is triggered when our slug is copied to the clipboard and we show a notification with custom information about the copy request. ===== LINKS ===== LaraFlash Laravel Package https://github.com/DevMarketer/LaraFlash Get Code Snippet for Toast.Blade.php: https://gist.github.com/jacurtis/9fa687e8f7512bb197decce7ffc30091 ==== MORE FROM THIS SERIES . ==== Full Playlist for the "Building an Advanced Blog/CMS from Start to Finish" Series: https://www.youtube.com/playlist?list=PLwAKR305CRO_cukAejlt5kz3pTtDMW_Cd ==== DOWNLOAD SOURCE CODE ==== Download Code from this Episode: https://github.com/DevMarketer/DevMarketer/releases/tag/ep_25 ==== FOLLOW ME ==== Subscribe for New Releases! Subscribe to DevMarketer Insider https://confirmsubscription.com/h/d/5EDC91CF554832D1 Twitter - http://twitter.com/_jacurtis (ask me questions!) ==== QUESTIONS? ==== Leave a comment below and I or someone else can help you. For quick questions you may also want to ask me on Twitter, I respond almost immediately. Email me hello@jacurtis.com Thanks for all your support!
  • DevMarketer youtube.com channel retired video youtube 2017-11-10 17:39
    ↗

    Today we are going to build an API Endpoint to test if our blogpost slug is unqiue. We want it to return true if it is unique (indicating we can use it in our post), and false if we can not use it because the slug is already taken by another post. In our Vue.js component we...

    ▶ Watch on YouTube Opens in a new tab
    Today we are going to build an API Endpoint to test if our blogpost slug is unqiue. We want it to return true if it is unique (indicating we can use it in our post), and false if we can not use it because the slug is already taken by another post. In our Vue.js component we are going to refactor it so that only set the slug by using a setter method. THis allows us to only write our API call once, and validate it in our setter method. This simplifies the code significantly and makes it easier to maintain. ==== MORE FROM THIS SERIES . ==== Full Playlist for the "Building an Advanced Blog/CMS from Start to Finish" Series: https://www.youtube.com/playlist?list=PLwAKR305CRO_cukAejlt5kz3pTtDMW_Cd ==== DOWNLOAD SOURCE CODE ==== Download Code from this Episode: https://github.com/DevMarketer/DevMarketer/releases/tag/ep_24 ==== FOLLOW ME ==== Subscribe for New Releases! Subscribe to DevMarketer Insider https://confirmsubscription.com/h/d/5EDC91CF554832D1 Twitter - http://twitter.com/_jacurtis (ask me questions!) ==== QUESTIONS? ==== Leave a comment below and I or someone else can help you. For quick questions you may also want to ask me on Twitter, I respond almost immediately. Email me hello@jacurtis.com Thanks for all your support!
  • DevMarketer youtube.com channel retired video youtube 2017-11-01 14:00
    ↗

    This video will focus on building a token-based authentication system in Laravel 5.5. This is the default api authentication driver that Laravel uses. We will also set up an api_token field in our database and explore how we can set it to auto-populate using a little-known...

    ▶ Watch on YouTube Opens in a new tab
    This video will focus on building a token-based authentication system in Laravel 5.5. This is the default api authentication driver that Laravel uses. We will also set up an api_token field in our database and explore how we can set it to auto-populate using a little-known Laravel features called observers. We start off by creating clearing our database and adjusting our original users table migration to add the api_token column. The reason we don’t just add this with a new migration is because we will be making the column a unique index and we already have records in our database which don’t contain unique api tokens. This causes exceptions to be thrown and because the data is all auto-generated anyway, we might as well just make life easy by removing all the data, running it fresh and re-seeding our database. Before we seed, make sure to add the api token field in the LaraTrustSeeder.php file, so that all of our laratrust classes have api tokens to work with, since it is now required. Now to add api_tokens to all of our other users, we will tie into the creating event, using observers. Observers are a paradigm that allow them to watch our model for certain changes, and then jump in and manipulate or run functions with or against our model, before letting the process continue. To create an observer we will create a folder in our app folder for all future observers we might have, create the UserObserver.php file, and populate it with a basic observer template provided in the Laravel documentation. After that, to get the observer working, we need to create a service provider that links our model to our observer and then make sure that the service provider is in our config/app file. Once that is complete, we are ready to go. Any time we create a new user model now, the observer will jump in before the save and automatically create an api token and attach it to the model, before it passes it back to the model to complete the save. This way we don’t actually have to worry about manually dealing with api_tokens, they will just get built for us automatically. Hopefully this provided some new content that you can learn from. If you are new to the channel, be sure to subscribe, and remember you can always talk to me on twitter, or email me if necessary (all details below). === CODE SNIPPETS === Use this snippet to generate the random api token: bin2hex(openssl_random_pseudo_bytes(30)); === LINKS === Laravel 5.5 Observer Documentation https://laravel.com/docs/5.5/eloquent#observers Insomnia Rest Client (Mac, Windows, and Linux) https://insomnia.rest/ Postman Rest Client (Mac, Windows, and Linux) https://www.getpostman.com/ Paw Rest Client (Mac Only) https://paw.cloud/ ==== MORE FROM THIS SERIES . ==== Full Playlist for the "Building an Advanced Blog/CMS from Start to Finish" Series: https://www.youtube.com/playlist?list=PLwAKR305CRO_cukAejlt5kz3pTtDMW_Cd ==== DOWNLOAD SOURCE CODE ==== Download Code from this Episode: https://github.com/DevMarketer/DevMarketer/releases/tag/ep_23 ==== FOLLOW ME ==== Subscribe for New Releases! Subscribe to DevMarketer Insider https://confirmsubscription.com/h/d/5EDC91CF554832D1 Twitter - http://twitter.com/_jacurtis (ask me questions!) ==== QUESTIONS? ==== Leave a comment below and I or someone else can help you. For quick questions you may also want to ask me on Twitter, I respond almost immediately. Email me hello@jacurtis.com Thanks for all your support!
  • DevMarketer youtube.com channel retired video youtube 2017-10-28 20:10
    ↗

    This video/release covers creating a custom Vue.js component for our blog page slug generator. If you wish to watch the long version of this video go here: https://youtu.be/uDlPoH2Wpq8 The goal is to build a component that will create a slug for our page based on the title...

    ▶ Watch on YouTube Opens in a new tab
    This video/release covers creating a custom Vue.js component for our blog page slug generator. If you wish to watch the long version of this video go here: https://youtu.be/uDlPoH2Wpq8 The goal is to build a component that will create a slug for our page based on the title field automatically. This component is actually quite sophisticated as it will take our blog title and automatically create a URL for us by removing any punctuation and even swapping our Unicode characters for their word equivalents, and accented characters for their non-accent equivalents. After that, we can customize it if we wish, and a customized slug will no longer get updated by our title automatically. Furthermore, if you have customized the slug but wish to reset it back to its auto-generating functionality, you can do that with a simple reset button. ==== MORE FROM THIS SERIES . ==== Full Playlist for the "Building an Advanced Blog/CMS from Start to Finish" Series: https://www.youtube.com/playlist?list=PLwAKR305CRO_cukAejlt5kz3pTtDMW_Cd === LINKS === Watch LONG VERSION of This Video (1hr36min) https://youtu.be/uDlPoH2Wpq8 Node-Slug Plugin on GitHub https://github.com/dodo/node-slug ==== DOWNLOAD SOURCE CODE ==== Download Code from this Episode: https://github.com/DevMarketer/DevMarketer/releases/tag/ep_22 ==== FOLLOW ME ==== Subscribe for New Releases! Subscribe to DevMarketer Insider https://confirmsubscription.com/h/d/5EDC91CF554832D1 Twitter - http://twitter.com/_jacurtis (ask me questions!) ==== QUESTIONS? ==== Leave a comment below and I or someone else can help you. For quick questions you may also want to ask me on Twitter, I respond almost immediately. Email me hello@jacurtis.com Thanks for all your support!
  • DevMarketer youtube.com channel retired video youtube 2017-10-27 16:12
    ↗

    This video we will be styling the blog post creation page. Mostly focused around HTML and CSS of the posts.create page. This video's primary purpose is to prepare us for future videos on creating blog posts. ==== MORE FROM THIS SERIES . ==== Full Playlist for the "Building an...

    ▶ Watch on YouTube Opens in a new tab
    This video we will be styling the blog post creation page. Mostly focused around HTML and CSS of the posts.create page. This video's primary purpose is to prepare us for future videos on creating blog posts. ==== MORE FROM THIS SERIES . ==== Full Playlist for the "Building an Advanced Blog/CMS from Start to Finish" Series: https://www.youtube.com/playlist?list=PLwAKR305CRO_cukAejlt5kz3pTtDMW_Cd ==== DOWNLOAD SOURCE CODE ==== Download Code from this Episode: https://github.com/DevMarketer/DevMarketer/releases/tag/ep_21 ==== FOLLOW ME ==== Subscribe for New Releases! Subscribe to DevMarketer Insider https://confirmsubscription.com/h/d/5EDC91CF554832D1 Twitter - http://twitter.com/_jacurtis (ask me questions!) ==== QUESTIONS? ==== Leave a comment below and I or someone else can help you. For quick questions you may also want to ask me on Twitter, I respond almost immediately. Email me hello@jacurtis.com Thanks for all your support!
  • End of feed
Maibook — your private personalized AI community
  • rcanand.com
  • mlaillc.com
  • @rcanand (X)
  • LinkedIn
  • Feedback
  • Credits