twiggy99

twiggy99

Member Since 2 Years Ago

Experience Points 2,160
Experience Level 1

2,840 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 14
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.

11 Feb
2 months ago

twiggy99 left a reply on Using Routing Outside Of Laravel Without The Huge Dependency List

@TEKMI - Sorry maybe I wasn't clear enough. The route params are fine on other routes. There is something in Laravel stipping them out in the route group I have posted above.

twiggy99 started a new conversation GET Params Are Empty And Its Stopping The Pagination From Working

I have the following route set-up:

Route::namespace('Admin')->prefix('admin')->name('admin.')->middleware(['auth', 'auth.admin'])->group(function () {

    Route::prefix('users')->group(function() {
    Route::get('', '[email protected]')->name('user');
    Route::get('/view/{id}', '[email protected]')->name('user.view');
    Route::get('/edit/{id}', '[email protected]')->name('user.edit');
    Route::get('/delete/{id}', '[email protected]')->name('user.delete');
    Route::post('/update', '[email protected]')->name('user.update');
    });

I can now hit this page to show the Index method on the \Admin\UserController http://localhost:8050/admin/users this works fine and gets the users in a paginated form. When I click the pagination links the page refreshes but the data stays the same.

After some digging my GET params are empty, even when I pass the page key directly in the URL like so: http://localhost:8050/admin/users?page=2 my GET params are empty so that's why the pagination isn't working but whats blocking the GET params from getting through?

Even doing a dd($_GET) shows the GET params as being empty.

27 Jul
8 months ago

twiggy99 started a new conversation Using Laravel Socialite Outside Of Laravel

My Google skills seem to be failing me, I can't find anything on the subject. We have loads of applications on Laravel and use socialite and love it.

Problem is we have lots of legacy apps as well which aren't feasible to switch to Laravel in the foreseeable future. Has anyone ever used socialite outside of Laravel? I can't find any information on it?

If not, doe's anyone know of a similar package that isn't so tightly coupled to Laravel that can be used stand alone?

18 Apr
1 year ago

twiggy99 left a reply on There Is No Existing Directory At "/storage/logs" And Its Not Buildable: Permission Denied

@lostdreamer_nl sorry I shortened that path as it had sensitive client information in it. The full path is /var/www/clientname/storage/logs

twiggy99 left a reply on There Is No Existing Directory At "/storage/logs" And Its Not Buildable: Permission Denied

I'm doing a little more digging and in the index.php I tried to see if I could actually open and write to the log file:

$log = fopen("../storage/logs/laravel.log", "w") or die("Unable to open file!");
$text = 'test line ';
fwrite($log, $text);
fclose($log);die;

This writes to the log file with no issues, so PHP/Docker combo can find and write to the log file but something in Laravel is not able to find it. Any suggestions?

twiggy99 started a new conversation There Is No Existing Directory At "/storage/logs" And Its Not Buildable: Permission Denied

So this is a pretty common issue and it's usually down to permissions not being set correctly, only this time... they are. Everything was running on my local machine (Elementary OS) and remote machine (Ubuntu 16.04), the entire LEMP stack is running inside of docker containers but then I started getting the above error message both locally and on the live server and I have no idea why.

On my local system everything is running and owned by my own user, I have even set the entire storage folder system to 777 recursively yet I still get the above message. The laravel.log file and the folders all definitely exist.

On the remote machine all files are owned by one user and the docker containers are run by that same user. I have set-up the file permissions as per documented on other sites (mostly 775) but still no luck.

After 777 the entire directory locally and it's still not begin able to find the file I can only conclude it's something else that's causing the error but what is it?

11 Jul
1 year ago

twiggy99 started a new conversation Using Routing Outside Of Laravel Without The Huge Dependency List

Hello,

I need to create a pretty basic app with a few classes and something to route the requests to those classes. I really like Laravel's routing more than everything else but it seems all of Laravels components are very tightly coupled and require each other to work.

Has anyone else managed to get Laravel routing working as a standalone package without the need to include service containers, support helpers, events etc? If so how did you manage it?

29 Mar
2 years ago

twiggy99 started a new conversation Laravel Eloquent Limit Results For Relationship

I have a simple set-up of Albums and Images, each album has many images. I can get all the data fine but I want to limit the returned number of images to 3. I have tried passing a closure like so:

```Album::with(['images' =>  function($query) { $query->take(3);}])->get();```

This does limit the number of images to 3 but it limits the total count of images to 3 but I want to limit each album to 3 images. So the first album will show 3 images as expected but all the other albums have no images.

I have tried adding a new method to my model like so:

    public function limitImages()
    {
        return $this->hasMany('App\Image')->limit(3);
    }

And I call this in my controller:

    Album::with('limitImages')->get();

But this doesn't limit the image count returned at all

16 Mar
2 years ago

twiggy99 started a new conversation Include Lodash (or Any NPM Module) With Webpack

I have followed Jeffs awesome series on webpack but he doesn't cover how to load NPM modules with webpack. I'm trying to use the lodash library. I have included it in my main.js file

var _ = require('lodash');

My webpack file is identical to that of Jeffs in the webpack series so I include the JS like so:

{
                test: /\.js$/,
                exclude: /node_modules/,
                loader: "babel-loader"
            },

When running the build I get this in the output:

[1] ./~/lodash/lodash.js 540 kB {0} [built]

In my code (vuejs code) I try and call the debounce function:

methods: {
            fetchData: _.debounce(function () {
                this.$http.get('/data').then(function (response) {
                    console.log(response.body)
                }, function (error) {
                    console.log(error);
                });
            }, 500)
        }

But I get the following error:

Uncaught ReferenceError: _ is not defined

Do I need to build vuejs with webpack as well? At the moment I'm just including it via the CDN. How do I get webpack to include lodash so I can access it in my other JS files?

03 Mar
2 years ago

twiggy99 started a new conversation Webpack And Bootstrap

Hello,

I've been following the webpack video series and all is working brilliantly :) thank you Jeff!

I'm working on a legacy codeigniter application which I'm trying to update to use some more modern techniques so I'm now trying to import bootstrap in my SASS file like so: @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";

(I installed bootstrap via npm install bootstrap-sass)

But I get the following errors:


ERROR in ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss
Module not found: Error: Can't resolve '../fonts/bootstrap/glyphicons-halflings-regular.eot' in '/home/mark/Code/ena-shaw/es-admin/application/src/css'
 @ ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss 6:6761-6823 6:6846-6908
 @ ./application/src/css/main.scss
 @ ./application/src/js/main.js

ERROR in ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss
Module not found: Error: Can't resolve '../fonts/bootstrap/glyphicons-halflings-regular.woff2' in '/home/mark/Code/ena-shaw/es-admin/application/src/css'
 @ ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss 6:6960-7024
 @ ./application/src/css/main.scss
 @ ./application/src/js/main.js

ERROR in ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss
Module not found: Error: Can't resolve '../fonts/bootstrap/glyphicons-halflings-regular.woff' in '/home/mark/Code/ena-shaw/es-admin/application/src/css'
 @ ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss 6:7057-7120
 @ ./application/src/css/main.scss
 @ ./application/src/js/main.js

ERROR in ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss
Module not found: Error: Can't resolve '../fonts/bootstrap/glyphicons-halflings-regular.ttf' in '/home/mark/Code/ena-shaw/es-admin/application/src/css'
 @ ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss 6:7152-7214
 @ ./application/src/css/main.scss
 @ ./application/src/js/main.js

ERROR in ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss
Module not found: Error: Can't resolve '../fonts/bootstrap/glyphicons-halflings-regular.svg' in '/home/mark/Code/ena-shaw/es-admin/application/src/css'
 @ ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss 6:7250-7312
 @ ./application/src/css/main.scss
 @ ./application/src/js/main.js

ERROR in ./application/src/css/main.scss
Module build failed: Error
    at factoryCallback (/home/mark/Code/ena-shaw/es-admin/node_modules/webpack/lib/Compilation.js:259:39)
    at /home/mark/Code/ena-shaw/es-admin/node_modules/webpack/lib/NormalModuleFactory.js:234:19
    at onDoneResolving (/home/mark/Code/ena-shaw/es-admin/node_modules/webpack/lib/NormalModuleFactory.js:59:20)
    at /home/mark/Code/ena-shaw/es-admin/node_modules/webpack/lib/NormalModuleFactory.js:126:20
    at /home/mark/Code/ena-shaw/es-admin/node_modules/async/dist/async.js:3694:9
    at /home/mark/Code/ena-shaw/es-admin/node_modules/async/dist/async.js:359:16
    at iteratorCallback (/home/mark/Code/ena-shaw/es-admin/node_modules/async/dist/async.js:933:13)
    at /home/mark/Code/ena-shaw/es-admin/node_modules/async/dist/async.js:843:16
    at /home/mark/Code/ena-shaw/es-admin/node_modules/async/dist/async.js:3691:13
    at apply (/home/mark/Code/ena-shaw/es-admin/node_modules/async/dist/async.js:21:25)
    at /home/mark/Code/ena-shaw/es-admin/node_modules/async/dist/async.js:56:12
    at /home/mark/Code/ena-shaw/es-admin/node_modules/webpack/lib/NormalModuleFactory.js:121:22
    at onResolved (/home/mark/Code/ena-shaw/es-admin/node_modules/enhanced-resolve/lib/Resolver.js:70:11)
    at loggingCallbackWrapper (/home/mark/Code/ena-shaw/es-admin/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
    at afterInnerCallback (/home/mark/Code/ena-shaw/es-admin/node_modules/enhanced-resolve/lib/Resolver.js:138:10)
    at loggingCallbackWrapper (/home/mark/Code/ena-shaw/es-admin/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
    at Resolver.applyPluginsAsyncSeriesBailResult1 (/home/mark/Code/ena-shaw/es-admin/node_modules/tapable/lib/Tapable.js:181:46)
    at innerCallback (/home/mark/Code/ena-shaw/es-admin/node_modules/enhanced-resolve/lib/Resolver.js:125:19)
    at loggingCallbackWrapper (/home/mark/Code/ena-shaw/es-admin/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
    at /home/mark/Code/ena-shaw/es-admin/node_modules/tapable/lib/Tapable.js:283:15
    at /home/mark/Code/ena-shaw/es-admin/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:38:4
    at loggingCallbackWrapper (/home/mark/Code/ena-shaw/es-admin/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
    at afterInnerCallback (/home/mark/Code/ena-shaw/es-admin/node_modules/enhanced-resolve/lib/Resolver.js:138:10)
    at loggingCallbackWrapper (/home/mark/Code/ena-shaw/es-admin/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
    at Resolver.applyPluginsAsyncSeriesBailResult1 (/home/mark/Code/ena-shaw/es-admin/node_modules/tapable/lib/Tapable.js:181:46)
    at innerCallback (/home/mark/Code/ena-shaw/es-admin/node_modules/enhanced-resolve/lib/Resolver.js:125:19)
    at loggingCallbackWrapper (/home/mark/Code/ena-shaw/es-admin/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
    at /home/mark/Code/ena-shaw/es-admin/node_modules/tapable/lib/Tapable.js:283:15
    at innerCallback (/home/mark/Code/ena-shaw/es-admin/node_modules/enhanced-resolve/lib/Resolver.js:123:11)
    at loggingCallbackWrapper (/home/mark/Code/ena-shaw/es-admin/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)

ERROR in /home/mark/Code/ena-shaw/es-admin/node_modules/extract-text-webpack-plugin/loader.js??ref--1-0!/home/mark/Code/ena-shaw/es-admin/node_modules/style-loader/index.js!/home/mark/Code/ena-shaw/es-admin/node_modules/css-loader/index.js!/home/mark/Code/ena-shaw/es-admin/node_modules/sass-loader/lib/loader.js!/home/mark/Code/ena-shaw/es-admin/application/src/css/main.scss doesn't export content
Child extract-text-webpack-plugin:
       [0] ./~/css-loader/lib/css-base.js 1.46 kB {0} [built]
       [1] ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss 162 kB {0} [built]
    
    ERROR in ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss
    Module not found: Error: Can't resolve '../fonts/bootstrap/glyphicons-halflings-regular.eot' in '/home/mark/Code/ena-shaw/es-admin/application/src/css'
     @ ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss 6:6761-6823 6:6846-6908
    
    ERROR in ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss
    Module not found: Error: Can't resolve '../fonts/bootstrap/glyphicons-halflings-regular.woff2' in '/home/mark/Code/ena-shaw/es-admin/application/src/css'
     @ ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss 6:6960-7024
    
    ERROR in ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss
    Module not found: Error: Can't resolve '../fonts/bootstrap/glyphicons-halflings-regular.woff' in '/home/mark/Code/ena-shaw/es-admin/application/src/css'
     @ ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss 6:7057-7120
    
    ERROR in ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss
    Module not found: Error: Can't resolve '../fonts/bootstrap/glyphicons-halflings-regular.ttf' in '/home/mark/Code/ena-shaw/es-admin/application/src/css'
     @ ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss 6:7152-7214
    
    ERROR in ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss
    Module not found: Error: Can't resolve '../fonts/bootstrap/glyphicons-halflings-regular.svg' in '/home/mark/Code/ena-shaw/es-admin/application/src/css'
     @ ./~/css-loader!./~/sass-loader/lib/loader.js!./application/src/css/main.scss 6:7250-7312

I guess I need to include a new loader. After some research it seemed like I need the url-loader. so I added the following to my webpack.config file:

{
                test: /\.woff($|\?)|\.woff2($|\?)|\.ttf($|\?)|\.eot($|\?)|\.svg($|\?)/,
                loader: 'url-loader'
 },

This hasn't made any difference. So my full modules array now looks like this:

module:{
        rules:[
            {
                test: /\.woff($|\?)|\.woff2($|\?)|\.ttf($|\?)|\.eot($|\?)|\.svg($|\?)/,
                loader: 'url-loader'
            },
            {
                test: /\.s[ac]ss$/,
                use: ExtractTextPlugin.extract({
                    use: ['css-loader', 'sass-loader'], 
                    fallback: 'style-loader'
                })
            },
            {
                test: /\.css$/,
                use: ['style-loader', 'css-loader']
            },
            {
                test: /\.js$/,
                exclude: /node_modules/,
                loader: "babel-loader"
            }
        ]
    },

Has anyone gotten bootstrap working with SASS and webpack?

17 Oct
2 years ago

twiggy99 started a new conversation Laravel 5.3 API Alternating Slow Request Response Times

Hello,

I've built a mock API using Laravel 5.3 and authorising via a token (not oAuth) but every other request takes 3times as long as the previous one. I'm simply authorising the request and returning a string, no ORM, Database or caching system is being accessed simply returning a string. Has anyone experienced this before?

Response times for each request to the same API end point: 542ms 168ms 543ms 136ms 448ms 156ms 536ms 130ms 524ms

twiggy99 left a reply on Laravel 5.3 Passport API Unauthenticated In Postman Using Personal Access Tokens

Nope no error are thrown or recorded in the error log, auth just fails. The problem is with DateInterval('P100Y') as pointed out. This must be a Windows issue, I don't get the error on Linux. Changing to DateInterval('P10Y') works fine.

@doublep can you please explain why P100Y fails and why your fix P1Y (I did P10Y) works?

03 Oct
2 years ago

twiggy99 started a new conversation Laravel 5.3 Passport API Unauthenticated In Postman Using Personal Access Tokens

I have set-up Laravel using passport as per the documentation here: https://laravel.com/docs/5.3/passport

A few people have asked about this using the oAuth implementation but I'm trying to use the personal access tokens not oAuth. One suggestion was to remove the auth middleware but obviously this leaves the application wide open so anyone can make requests.

I have the following route (in routes/api.php):

Route::get('/test', function(){
    return 'returned string from test route';
})->middleware('auth:api');

This works if I remove the auth middleware so the route is working correctly but when enabling the auth middleware again I get the following error in postman:

{"error":"Unauthenticated."}

These are the headers being sent via postman:

GET /api/test HTTP/1.1
Host: localhost:8000
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImU4ZmY5MDMwY2EyM2E2MDYwODViN2Y3ZWNiMzcxNDY1MzQxNDViNTk4ODU4NmZhNDljYzU2YjMzYWZiNzhkYTk5OTIwZWMzYzEwNTBkNjZjIn0.eyJhdWQiOiIyIiwianRpIjoiZThmZjkwMzBjYTIzYTYwNjA4NWI3ZjdlY2IzNzE0NjUzNDE0NWI1OTg4NTg2ZmE0OWNjNTZiMzNhZmI3OGRhOTk5MjBlYzNjMTA1MGQ2NmMiLCJpYXQiOjE0NzU1MDMxNjUsIm5iZiI6MTQ3NTUwMzE2NSwiZXhwIjowLCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.IpzKK29dJCpliUXQvPRss87kGFngFcXXwV3jRwhbZOZLxl-4UV70cBsSigmqUuBsHQ4onVl_Cjcq6cEmMFvTZZr7D9AtY3EmScvMPjoFh4KQ3wgd5CoyWfcLQgoBxbElNxL0xW2fIQhpeQd_8Yz_Pr5BByGVTpxfg4JJZ4PzovvZsa2R3izYtqw6-qeurQOtsfOnot5uoLDeDDc76klifnfHfOcNZSoIFGNP3gIGKYBe6lfFuDViR_mQkwQS5_UmERt3GSkEvJjGMtwcRjWY7VPAJ4tvWLnyLw0roGU2e37L0wsqfJ8OrG0Cipv-anXAW_utSo-fiVMr8ZeAWIPguq73Zd44x95YY3nNPOKD5dVIRZM7rQgdhjIwTEz1ggtSXLp-Fu3QOtXaHUahCHvjOTdiTYEa-GR4TZ5wGzt-aRhjdBB7WTe0C6T9ZWVwQr0kJk8AxW6ne87wwJYp_shGunTclZ3SCq5VYg2K_MclbJl65-dT8x-nwqg0lqfNx9s1wmtryrMFIPoBEyaGNEK1aWGHKq418-BIQ1_UAhcHHtEXclWvsGWwhyo3aso-E-sCN2o_IkYvSboIsdFAIXvDvQmoAwis6f1J57zWH8AW1ynCFcBgzBDjIyiaCE5nqtb_4zbEXr8L1EbcllbtZkq3vd9w996kO7xlpBEWwPY8IWg
Accept: application/json
Cache-Control: no-cache
Postman-Token: 6bc483b2-23df-acce-7eef-5a443f8f5d45
13 Sep
2 years ago

twiggy99 left a reply on 5.3 Error When Running Gulp: Entry Module Not Found

@nate.a.johnson thank you, I managed to work it out eventually, Google just returned a lot of noise and no Laracast results on the subject in the top 50 or so results. Note taken.... search Laracasts separately to Google

12 Sep
2 years ago

twiggy99 started a new conversation 5.3 Error When Running Gulp: Entry Module Not Found

I have taken a fresh install of Laravel using the Laravel install tool:

laravel new test

When I cd into the directory and run gulp I get the following error:

Error: Entry module not found: Error: Can't resolve 'buble' in 'C:\xampp\htdocs\test'

resolve 'buble' in 'C:\xampp\htdocs\test

This is a fresh install with no changes, am I missing something from the install process?

09 Sep
2 years ago

twiggy99 left a reply on Which Passport Access Is Best For Me

@primordial ah that makes more sense, I was missing the link between Passport and JWT I couldn't see how to implementing it without setting up the oAuth or Token part.

I would like to stick with Passport if possible I just need to know if oAuth or Token would be best for my situation. The JWT part of Passport would be fine for the Vue frontend to use I just need advice on which option is best for the backend.

twiggy99 left a reply on Which Passport Access Is Best For Me

@soury thank you, I will have to have a go at this because I'm struggling to get my head around how the application knows its a valid token, how to get a token etc etc.

Are there an good resources about implementing the JWT with Laravel Passport?

twiggy99 left a reply on Which Passport Access Is Best For Me

@primordial how does passport handle JWT? Do you simply add the middleware and everything just works? Or does it still need oAuth or an access token to work? The passport documentation isn't clear on this matter.

twiggy99 left a reply on Which Passport Access Is Best For Me

hello @soury I'm un-sure how passport implements JWT, after activating the middleware won't the middleware still require either oAuth or a access Token to work?

twiggy99 started a new conversation Which Passport Access Is Best For Me

Hello,

I'm creating an API using Laravel, this API will be consumed by 6 front ends built in Laravel. The API will not be publicly accessible, only accessible via my own front end apps.

What would be the best authentication method for this set-up? From my reading simply issuing them a Token rather than going through the entire oAuth process is the way to go. Is my thinking on this correct? Are there any disadvantages or reasons not to do it this way?

Thank you Mark

28 Jul
2 years ago

twiggy99 left a reply on A Few Laracasts Things I Would Like Clearing Up

@jlrdw although I agree some what with what you're saying but if your site is on shared hosting it probably isn't big enough to be need/benefit from a CI/CD set-up and to my knowledge (I've not had a shared host in over 10 years) you do not have SSH access so CI/CD would be near impossible with its current tool set.

@bashy that looks like an interesting combination I will take a close look this weekend

27 Jul
2 years ago

twiggy99 left a reply on A Few Laracasts Things I Would Like Clearing Up

Hi @bashy I've looked at gitlab a while back but didn't give it ago, this looks really useful. Are there any good tutorials on integrating it with Laravel? When I say tutorial I actually mean a overview of how the process flows from developing, to pushing, to deployment.

twiggy99 left a reply on A Few Laracasts Things I Would Like Clearing Up

@BartHuis yes I realised this after I posted, Taylor is a friend of Geoff's that's why hes promoting a propriety, closed source system that causes a vendor lock in. I was quite disappointed when I found this out.

21 Jul
2 years ago

twiggy99 started a new conversation A Few Laracasts Things I Would Like Clearing Up

Hello, I love Jeff's work, many years back when I first seen him on tuts+ I've loved all his videos since. I'm looking at getting a subscription here but a few things are bothering me that I would like cleared up.

  1. Are there any series about deployment of Laravel apps, in particular continuous integration? (I understand there's a course on Forge but I'm extremely surprised Jeff has recommended a proprietary, closed source system you have no control over that has vendor lock-in) Is there anything about industry standard open source tools like Jenkins? If not are there any planned?

  2. The testing series looks in depth but there are no free videos to see what the quality of the content is like. What are your experiences wit this course? Doe's it cover everything you need?

  3. Are there any courses or videos aimed at creating API's and authenticating them? Or a selection of videos from different courses that would teach the techniques of building and securing an API?

Thank you in advanced.